summaryrefslogtreecommitdiff
path: root/src/test/test-strip-tab-ansi.c
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-08-24 07:41:08 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commitb5577273e06f157530ac35e0526251dbf7b66f7a (patch)
tree854034293fd6cd644fabac281f88b86fddc2cd0c /src/test/test-strip-tab-ansi.c
parent145f9ff9775ae174ffbfc87dd82962c80b09a13c (diff)
Prep v239: Do not test terminal_urlify_path()
elogind doesn't need and thus does not support it.
Diffstat (limited to 'src/test/test-strip-tab-ansi.c')
-rw-r--r--src/test/test-strip-tab-ansi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/test-strip-tab-ansi.c b/src/test/test-strip-tab-ansi.c
index 4345f6a14..8ee10fd0c 100644
--- a/src/test/test-strip-tab-ansi.c
+++ b/src/test/test-strip-tab-ansi.c
@@ -2,13 +2,17 @@
#include <stdio.h>
-//#include "alloc-util.h"
+#include "alloc-util.h"
#include "string-util.h"
#include "terminal-util.h"
#include "util.h"
int main(int argc, char *argv[]) {
+#if 0 /// urlified is UNNEEDED by elogind
_cleanup_free_ char *urlified = NULL, *q = NULL, *qq = NULL;
+#else
+ _cleanup_free_ char *q = NULL, *qq = NULL;
+#endif // 0
char *p, *z;
assert_se(p = strdup("\tFoobar\tbar\twaldo\t"));
@@ -33,6 +37,7 @@ int main(int argc, char *argv[]) {
assert_se(streq(p, "\x1B[waldo"));
free(p);
+#if 0 /// UNNEEDED by elogind
assert_se(terminal_urlify_path("/etc/fstab", "i am a fabulous link", &urlified) >= 0);
assert_se(p = strjoin("something ", urlified, " something-else"));
assert_se(q = strdup(p));
@@ -41,6 +46,7 @@ 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);
+#endif // 0
/* Truncate the formatted string in the middle of an ANSI sequence (in which case we shouldn't touch the
* incomplete sequence) */