summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0fbe4bf)
The final test use the outcome of the already masked part that
utilizes terminal_urlify_path(). That function is masked, because
it is nowhere used within elogind.
The previously unmasked final test used the outcome of that already
masked part and therefore crashed.
Bug: https://github.com/elogind/elogind/issues/81
Closes: https://github.com/elogind/elogind/issues/81
Signed-of-by: Sven Eden <sven.eden@prydeworx.com>
# Do not edit. Generated by make-man-rules.py.
manpages = [
# Do not edit. Generated by make-man-rules.py.
manpages = [
-['elogind', '8', [], ''],
+['elogind-inhibit', '1', [], ''],
+ ['elogind', '8', [], ''],
['elogind.syntax', '7', [], ''],
['loginctl', '1', [], ''],
['logind.conf', '5', [], ''],
['elogind.syntax', '7', [], ''],
['loginctl', '1', [], ''],
['logind.conf', '5', [], ''],
#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;
#else
_cleanup_free_ char *q = NULL, *qq = NULL;
#else
_cleanup_free_ char *q = NULL, *qq = NULL;
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));
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);
/* 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) */
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));
}