Changes in tester.c [4c7c21f:4e37d56]
Legend:
- Unmodified
- Added
- Removed
-
tester.c
r4c7c21f r4e37d56 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"); */ … … 230 232 owl_list l; 231 233 int numfailed=0; 232 char *av="aval", *bv="bval", *cv="cval", *dv="dval"; 234 char *av = g_strdup("aval"), *bv = g_strdup("bval"), *cv = g_strdup("cval"), 235 *dv = g_strdup("dval"); 233 236 234 237 printf("# BEGIN testing owl_dict\n"); … … 259 262 owl_list_cleanup(&l, g_free); 260 263 owl_dict_cleanup(&d, NULL); 264 265 g_free(av); 266 g_free(bv); 267 g_free(cv); 268 g_free(dv); 261 269 262 270 /* if (numfailed) printf("*** WARNING: failures encountered with owl_dict\n"); */
Note: See TracChangeset
for help on using the changeset viewer.