Changeset f47696f for tester.c


Ignore:
Timestamp:
Jan 20, 2011, 7:59:38 PM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.8, release-1.9
Children:
c426bc2
Parents:
443dcfa
git-author:
Nelson Elhage <nelhage@mit.edu> (01/03/11 21:18:17)
git-committer:
David Benjamin <davidben@mit.edu> (01/20/11 19:59:38)
Message:
Add owl_string_appendf_quoted for easy construction of command lines.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    r443dcfa rf47696f  
    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.