summaryrefslogtreecommitdiff
path: root/src/test/test-strv.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-10-04 23:51:45 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-10-04 23:55:35 +0200
commitbdf7026e9557349cd3eeb291c01655d5f2a55db8 (patch)
tree10d269fed663e99d659c34e2f8e89fe5b3f55ecd /src/test/test-strv.c
parent2355af60dc0c0ec2b7fbe69f15a77d980b017b3f (diff)
downloadsystemd-bdf7026e9557349cd3eeb291c01655d5f2a55db8.tar.gz
test: only use assert_se
The asserts used in the tests should never be allowed to be optimized away
Diffstat (limited to 'src/test/test-strv.c')
-rw-r--r--src/test/test-strv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/test-strv.c b/src/test/test-strv.c
index 7ba4c366ac..bbfe306d7d 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++]));