added baisc test code
This commit is contained in:
		
							parent
							
								
									ddeb4bcc23
								
							
						
					
					
						commit
						e26db1673a
					
				
					 1 changed files with 18 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,18 @@
 | 
			
		|||
#include <stdarg.h>
 | 
			
		||||
#include <stddef.h>
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include <setjmp.h>
 | 
			
		||||
#include <cmocka.h>
 | 
			
		||||
 
 | 
			
		||||
/* A test case that does nothing and succeeds. */
 | 
			
		||||
static void null_test_success(void **state) {
 | 
			
		||||
    (void) state; /* unused */
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
int main(void)
 | 
			
		||||
{
 | 
			
		||||
    const struct CMUnitTest tests[] = {
 | 
			
		||||
        cmocka_unit_test(null_test_success),
 | 
			
		||||
    }; 
 | 
			
		||||
    return cmocka_run_group_tests(tests, NULL, NULL);
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue