- Timestamp:
- Jul 16, 2011, 12:28:10 AM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 99ac28a
- Parents:
- e59d775
- git-author:
- David Benjamin <davidben@mit.edu> (07/10/11 19:00:08)
- git-committer:
- David Benjamin <davidben@mit.edu> (07/16/11 00:28:10)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tester.c
r14c9e05 r396505be 227 227 "\""); 228 228 229 GString * g= g_string_new("");230 owl_string_appendf_quoted( g, "%q foo %q%q %s %", "hello", "world is", "can't");229 GString *quoted = g_string_new(""); 230 owl_string_appendf_quoted(quoted, "%q foo %q%q %s %", "hello", "world is", "can't"); 231 231 FAIL_UNLESS("owl_string_appendf", 232 !strcmp( g->str, "hello foo 'world is'\"can't\" %s %"));233 g_string_free( g, true);232 !strcmp(quoted->str, "hello foo 'world is'\"can't\" %s %")); 233 g_string_free(quoted, true); 234 234 235 235 … … 275 275 276 276 errno = 0; 277 pw = getpwuid(getuid()); 278 if (pw) { 279 home = pw->pw_dir; 280 } else { 281 /* Just make some noise so we notice. */ 282 home = "<WHAT>"; 283 fprintf(stderr, "getpwuid: %s", errno ? strerror(errno) : "No such user"); 284 } 277 home = owl_global_get_homedir(&g); 285 278 s = owl_util_makepath("~"); 286 279 FAIL_UNLESS("makepath ~", !strcmp(home, s));
Note: See TracChangeset
for help on using the changeset viewer.