Changeset c2673ab
- Timestamp:
- May 22, 2010, 10:33:30 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 81601a6
- Parents:
- f034ac0
- git-author:
- Nelson Elhage <nelhage@mit.edu> (05/19/10 00:17:47)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (05/22/10 22:33:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tester.c
rf034ac0 rc2673ab 7 7 int numtests; 8 8 9 int owl_regtest(void); 9 10 int owl_util_regtest(void); 10 11 int owl_dict_regtest(void); … … 19 20 FILE *rnull = fopen("/dev/null", "r"); 20 21 FILE *wnull = fopen("/dev/null", "w"); 22 char *perlerr; 23 int status = 0; 21 24 newterm("xterm", wnull, rnull); 22 25 /* initialize global structures */ 23 26 owl_global_init(&g); 24 27 28 perlerr = owl_perlconfig_initperl(NULL, &argc, &argv, &env); 29 if (perlerr) { 30 endwin(); 31 fprintf(stderr, "Internal perl error: %s\n", perlerr); 32 status = 1; 33 goto out; 34 } 35 owl_global_complete_setup(&g); 36 37 status = owl_regtest(); 38 39 out: 40 /* probably not necessary, but tear down the screen */ 41 endwin(); 42 fclose(rnull); 43 fclose(wnull); 44 return status; 45 } 46 47 int owl_regtest(void) { 25 48 numtests = 0; 26 49 int numfailures=0; … … 40 63 printf("1..%d\n", numtests); 41 64 42 /* probably not necessary, but tear down the screen */43 endwin();44 fclose(rnull);45 fclose(wnull);46 47 65 return(numfailures); 48 66 }
Note: See TracChangeset
for help on using the changeset viewer.