/[ascend]/trunk/test/test.c
ViewVC logotype

Diff of /trunk/test/test.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2430 by jpye, Wed Jan 5 09:24:59 2011 UTC revision 2431 by jpye, Sat Mar 26 04:32:34 2011 UTC
# Line 36  Line 36 
36    
37  #include <CUnit/Basic.h>  #include <CUnit/Basic.h>
38    
39  ASC_IMPORT int register_cunit_tests();  extern int register_cunit_tests();
40    
41  extern struct FilePath* ASC_TEST_DIR;  extern struct FilePath* ASC_TEST_DIR;
42    
# Line 90  int run_suite_or_test(char *name){ Line 90  int run_suite_or_test(char *name){
90  int list_suites(){  int list_suites(){
91      struct CU_TestRegistry *reg = CU_get_registry();      struct CU_TestRegistry *reg = CU_get_registry();
92      struct CU_Suite *suite = reg->pSuite;      struct CU_Suite *suite = reg->pSuite;
93      fprintf(stderr,"Test suites found in registry:\n");      fprintf(stderr,"Test suites found in registry:\n");
94      while(suite!=NULL){      while(suite!=NULL){
95          fprintf(stderr,"\t%s\n", suite->pName);          fprintf(stderr,"\t%s\n", suite->pName);
96          suite = suite->pNext;          suite = suite->pNext;
# Line 186  int main(int argc, char* argv[]){ Line 186  int main(int argc, char* argv[]){
186                  else{                  else{
187                      fprintf(stderr,"Invalid argument for --on-error option!\n");                      fprintf(stderr,"Invalid argument for --on-error option!\n");
188                      result = 1;                      result = 1;
189                      goto cleanup;                        goto cleanup;
190                  }                  }
191                  break;                  break;
192              case 'l':              case 'l':

Legend:
Removed from v.2430  
changed lines
  Added in v.2431

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22