diff options
author | Daniel Mack <github@zonque.org> | 2015-09-22 17:04:38 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-09-22 17:04:38 +0200 |
commit | d11885c81419cac217ae132c1ef80733707ba650 (patch) | |
tree | c367fa9b5198865e7f5bb10a0121ccd17f0cba7d /src/test/test-strip-tab-ansi.c | |
parent | f98f4ace4df1b67572a5fbb3b1924b303d77d773 (diff) | |
parent | 3be78ab2b8f26c3c868275cac2458553efeda8a5 (diff) |
Merge pull request #1335 from poettering/some-fixes
A variety of mostly unrelated fixes
Diffstat (limited to 'src/test/test-strip-tab-ansi.c')
-rw-r--r-- | src/test/test-strip-tab-ansi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-strip-tab-ansi.c b/src/test/test-strip-tab-ansi.c index 358454842a..6cec8768b1 100644 --- a/src/test/test-strip-tab-ansi.c +++ b/src/test/test-strip-tab-ansi.c @@ -33,13 +33,13 @@ int main(int argc, char *argv[]) { assert_se(streq(p, " Foobar bar waldo ")); free(p); - assert_se(p = strdup(ANSI_HIGHLIGHT_ON "Hello" ANSI_HIGHLIGHT_OFF ANSI_HIGHLIGHT_RED_ON " world!" ANSI_HIGHLIGHT_OFF)); + assert_se(p = strdup(ANSI_HIGHLIGHT "Hello" ANSI_NORMAL ANSI_HIGHLIGHT_RED " world!" ANSI_NORMAL)); assert_se(strip_tab_ansi(&p, NULL)); fprintf(stdout, "<%s>\n", p); assert_se(streq(p, "Hello world!")); free(p); - assert_se(p = strdup("\x1B[\x1B[\t\x1B[" ANSI_HIGHLIGHT_ON "\x1B[" "Hello" ANSI_HIGHLIGHT_OFF ANSI_HIGHLIGHT_RED_ON " world!" ANSI_HIGHLIGHT_OFF)); + assert_se(p = strdup("\x1B[\x1B[\t\x1B[" ANSI_HIGHLIGHT "\x1B[" "Hello" ANSI_NORMAL ANSI_HIGHLIGHT_RED " world!" ANSI_NORMAL)); assert_se(strip_tab_ansi(&p, NULL)); assert_se(streq(p, "\x1B[\x1B[ \x1B[\x1B[Hello world!")); free(p); |