Changes in tester.c [f25df21:e93dd78]
Legend:
- Unmodified
- Added
- Removed
-
tester.c
rf25df21 re93dd78 32 32 char *perlerr; 33 33 int status = 0; 34 SCREEN *screen; 34 35 35 36 if (argc <= 1) { … … 41 42 wnull = fopen("/dev/null", "w"); 42 43 rnull = fopen("/dev/null", "r"); 43 newterm("xterm", wnull, rnull);44 screen = newterm("xterm", wnull, rnull); 44 45 /* initialize global structures */ 45 46 owl_global_init(&g); … … 91 92 /* probably not necessary, but tear down the screen */ 92 93 endwin(); 94 delscreen(screen); 93 95 fclose(rnull); 94 96 fclose(wnull); … … 218 220 owl_string_appendf_quoted(g, "%q foo %q%q %s %", "hello", "world is", "can't"); 219 221 FAIL_UNLESS("owl_string_appendf", 220 !strcmp(g _string_free(g, false),221 "hello foo 'world is'\"can't\" %s %"));222 !strcmp(g->str, "hello foo 'world is'\"can't\" %s %")); 223 g_string_free(g, true); 222 224 223 225 /* if (numfailed) printf("*** WARNING: failures encountered with owl_util\n"); */ … … 233 235 234 236 printf("# BEGIN testing owl_dict\n"); 235 FAIL_UNLESS("create", 0==owl_dict_create(&d));237 owl_dict_create(&d); 236 238 FAIL_UNLESS("insert b", 0==owl_dict_insert_element(&d, "b", bv, owl_dict_noop_delete)); 237 239 FAIL_UNLESS("insert d", 0==owl_dict_insert_element(&d, "d", dv, owl_dict_noop_delete)); … … 249 251 FAIL_UNLESS("get_size", 3==owl_dict_get_size(&d)); 250 252 owl_list_create(&l); 251 FAIL_UNLESS("get_keys", 0==owl_dict_get_keys(&d, &l));253 owl_dict_get_keys(&d, &l); 252 254 FAIL_UNLESS("get_keys result size", 3==owl_list_get_size(&l)); 253 255
Note: See TracChangeset
for help on using the changeset viewer.