Changeset f034ac0
- Timestamp:
- May 16, 2010, 1:15:25 AM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- c2673ab, 3f6555d
- Parents:
- 3687413
- git-author:
- David Benjamin <davidben@mit.edu> (05/15/10 16:24:27)
- git-committer:
- David Benjamin <davidben@mit.edu> (05/16/10 01:15:25)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tester.c
r4123da1 rf034ac0 16 16 int main(int argc, char **argv, char **env) 17 17 { 18 owl_errqueue_init(owl_global_get_errqueue(&g)); 19 owl_obarray_init(&(g.obarray)); 20 g.context_stack = NULL; 21 owl_global_push_context(&g, OWL_CTX_STARTUP, NULL, NULL); 18 /* initialize a fake ncurses, detached from std{in,out} */ 19 FILE *rnull = fopen("/dev/null", "r"); 20 FILE *wnull = fopen("/dev/null", "w"); 21 newterm("xterm", wnull, rnull); 22 /* initialize global structures */ 23 owl_global_init(&g); 22 24 23 25 numtests = 0; … … 37 39 } 38 40 printf("1..%d\n", numtests); 41 42 /* probably not necessary, but tear down the screen */ 43 endwin(); 44 fclose(rnull); 45 fclose(wnull); 46 39 47 return(numfailures); 40 48 }
Note: See TracChangeset
for help on using the changeset viewer.