summaryrefslogtreecommitdiff
path: root/src/test/test-util.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-04-07 20:28:27 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2015-04-07 20:54:23 +0200
commit5d84c44a976794625889f3d24e57835d5de234e3 (patch)
tree1460f6aa29ba99aba4d44634b9d37878c4fd2d1a /src/test/test-util.c
parent449a22a58f0fa55d9d0fd2eb597272446e032acd (diff)
test-util: don't mix declarations and code
Diffstat (limited to 'src/test/test-util.c')
-rw-r--r--src/test/test-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-util.c b/src/test/test-util.c
index aaf25f88bb..052e292a6c 100644
--- a/src/test/test-util.c
+++ b/src/test/test-util.c
@@ -416,10 +416,10 @@ static void test_cescape(void) {
static void test_cunescape(void) {
_cleanup_free_ char *unescaped;
+ const char *x = "abc\\\"\b\f\a\n\r\t\v\003\177\234\313\\000\\x00";
assert_se(cunescape("abc\\\\\\\"\\b\\f\\a\\n\\r\\t\\v\\003\\177\\234\\313\\000\\x00", 0, &unescaped) < 0);
assert_se(cunescape("abc\\\\\\\"\\b\\f\\a\\n\\r\\t\\v\\003\\177\\234\\313\\000\\x00", UNESCAPE_RELAX, &unescaped) >= 0);
- const char *x = "abc\\\"\b\f\a\n\r\t\v\003\177\234\313\\000\\x00";
assert_se(streq_ptr(unescaped, x));
free(unescaped);
unescaped = NULL;