test-strv: add missing oom check

CID#1420259.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-03-28 12:46:52 +01:00
parent 69d06b7acf
commit 42b977810d

View file

@ -674,7 +674,7 @@ static void test_strv_push_prepend(void) {
log_info("/* %s */", __func__);
a = strv_new("foo", "bar", "three");
assert_se(a = strv_new("foo", "bar", "three"));
assert_se(strv_push_prepend(&a, strdup("first")) >= 0);
assert_se(streq(a[0], "first"));