chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prep v239: Mask unneeded test in test-strip-ansi
[elogind.git]
/
src
/
test
/
test-strip-tab-ansi.c
diff --git
a/src/test/test-strip-tab-ansi.c
b/src/test/test-strip-tab-ansi.c
index 8ee10fd0c47bbf0b1a39ae02a1fbc9f2e4ee7f91..27e2a240ee168aae5519a71bdb98cff98477a3a3 100644
(file)
--- a/
src/test/test-strip-tab-ansi.c
+++ b/
src/test/test-strip-tab-ansi.c
@@
-8,12
+8,13
@@
#include "util.h"
int main(int argc, char *argv[]) {
#include "util.h"
int main(int argc, char *argv[]) {
-#if 0 /// urlified
is
UNNEEDED by elogind
+#if 0 /// urlified
and z are
UNNEEDED by elogind
_cleanup_free_ char *urlified = NULL, *q = NULL, *qq = NULL;
_cleanup_free_ char *urlified = NULL, *q = NULL, *qq = NULL;
+ char *p, *z;
#else
_cleanup_free_ char *q = NULL, *qq = NULL;
#else
_cleanup_free_ char *q = NULL, *qq = NULL;
+ char *p;
#endif // 0
#endif // 0
- char *p, *z;
assert_se(p = strdup("\tFoobar\tbar\twaldo\t"));
assert_se(strip_tab_ansi(&p, NULL, NULL));
assert_se(p = strdup("\tFoobar\tbar\twaldo\t"));
assert_se(strip_tab_ansi(&p, NULL, NULL));
@@
-46,7
+47,6
@@
int main(int argc, char *argv[]) {
printf("<%s>\n", p);
assert_se(streq(p, "something i am a fabulous link something-else"));
p = mfree(p);
printf("<%s>\n", p);
assert_se(streq(p, "something i am a fabulous link something-else"));
p = mfree(p);
-#endif // 0
/* Truncate the formatted string in the middle of an ANSI sequence (in which case we shouldn't touch the
* incomplete sequence) */
/* Truncate the formatted string in the middle of an ANSI sequence (in which case we shouldn't touch the
* incomplete sequence) */
@@
-57,6
+57,7
@@
int main(int argc, char *argv[]) {
assert_se(strip_tab_ansi(&q, NULL, NULL));
assert_se(streq(q, qq));
}
assert_se(strip_tab_ansi(&q, NULL, NULL));
assert_se(streq(q, qq));
}
+#endif // 0
return 0;
}
return 0;
}