Changeset 5ded5e8 for tester.c


Ignore:
Timestamp:
Jan 5, 2011, 1:35:52 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
release-1.7
Children:
47efcf5
Parents:
3812784
git-author:
Nelson Elhage <nelhage@mit.edu> (01/03/11 21:18:17)
git-committer:
David Benjamin <davidben@mit.edu> (01/05/11 13:35:52)
Message:
Add owl_string_appendf_quoted for easy construction of command lines.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    r3812784 r5ded5e8  
    215215                "\"");
    216216
     217  GString *g = g_string_new("");
     218  owl_string_appendf_quoted(g, "%q foo %q%q %s %", "hello", "world is", "can't");
     219  FAIL_UNLESS("owl_string_appendf",
     220              !strcmp(g_string_free(g, false),
     221                      "hello foo 'world is'\"can't\" %s %"));
     222
    217223  /* if (numfailed) printf("*** WARNING: failures encountered with owl_util\n"); */
    218224  printf("# END testing owl_util (%d failures)\n", numfailed);
Note: See TracChangeset for help on using the changeset viewer.