X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftest%2Ftest-strv.c;h=bbfe306d7d0478a426d6cf93a810e371ebfba9a6;hb=8bf13eb1e02b9977ae1cd331ae5dc7305a305a09;hp=7ba4c366aca95fa428b5e371bb02e2ef198b6d6d;hpb=b2fadec6048adb3596f2633cb7fe7a49f5937a18;p=elogind.git diff --git a/src/test/test-strv.c b/src/test/test-strv.c index 7ba4c366a..bbfe306d7 100644 --- a/src/test/test-strv.c +++ b/src/test/test-strv.c @@ -170,7 +170,7 @@ static void test_strv_unquote(const char *quoted, const char **list) { assert_se(r == 0); assert_se(s); j = strv_join(s, " | "); - assert(j); + assert_se(j); puts(j); STRV_FOREACH(t, s) @@ -184,8 +184,8 @@ static void test_invalid_unquote(const char *quoted) { int r; r = strv_split_quoted(&s, quoted); - assert(s == NULL); - assert(r == -EINVAL); + assert_se(s == NULL); + assert_se(r == -EINVAL); } static void test_strv_split(void) { @@ -196,7 +196,7 @@ static void test_strv_split(void) { l = strv_split(str, ","); - assert(l); + assert_se(l); STRV_FOREACH(s, l) { assert_se(streq(*s, input_table_multiple[i++])); @@ -211,7 +211,7 @@ static void test_strv_split_newlines(void) { l = strv_split_newlines(str); - assert(l); + assert_se(l); STRV_FOREACH(s, l) { assert_se(streq(*s, input_table_multiple[i++]));