il faut vraiment ameliorer le cadricel de test
This commit is contained in:
		
							parent
							
								
									8c90fa0356
								
							
						
					
					
						commit
						c082f6b7a6
					
				
							
								
								
									
										17
									
								
								tbb.c
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								tbb.c
									
									
									
									
									
								
							| @ -1,4 +1,11 @@ | ||||
| /*
 | ||||
|  * 	this is rudimentary test for the bubulles manages | ||||
|  * | ||||
|  * 	contact: <tth> on IRC freenode#tetalab | ||||
|  */ | ||||
| 
 | ||||
| #include  <stdio.h> | ||||
| #include  <stdlib.h> | ||||
| 
 | ||||
| #include  "bubulles.h" | ||||
| /* --------------------------------------------------------------------- */ | ||||
| @ -19,6 +26,10 @@ BBList		*bublist; | ||||
| int		foo; | ||||
| 
 | ||||
| bublist = alloc_bubulles("plop !", nbelm, 0); | ||||
| if (NULL==bublist) { | ||||
| 	fprintf(stderr, "err in %s, aborting...\n", __func__); | ||||
| 	abort(); | ||||
| 	} | ||||
| print_bublist_desc(bublist, 1); | ||||
| 
 | ||||
| foo = free_bubulles(bublist, 0); | ||||
| @ -40,6 +51,8 @@ for (idx=0; idx<nbelm; idx++) { | ||||
| 	foo = push_bubulle(bublist, &bubulle); | ||||
| 	} | ||||
| 
 | ||||
| /* WTF ? where is the 'pop' test ? */ | ||||
| 
 | ||||
| foo = bubulles_to_data("dummy-file", NULL, bublist, 0);	 | ||||
| printf("ecriture bubulles -> %d\n", foo); | ||||
| 
 | ||||
| @ -93,7 +106,7 @@ printf("peek 3     -> %7d\n", foo); | ||||
| foo = niceprint_bubulle(&bubulle, 0); | ||||
| printf("niceprint  -> %7d\n", foo); | ||||
| 
 | ||||
| return -42; | ||||
| return 0; | ||||
| } | ||||
| /* --------------------------------------------------------------------- */ | ||||
| 
 | ||||
| @ -101,7 +114,7 @@ int main(int argc, char *argv[]) | ||||
| { | ||||
| int		foo; | ||||
| 
 | ||||
| printf("*** Bubulles Testing -- %s %s\n", __DATE__, __TIME__); | ||||
| printf("*** Bubulles Testing -- %s %s\n\n", __DATE__, __TIME__); | ||||
| 
 | ||||
| bubulles_version(0); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user