diff options
author | Ronny Chevalier <chevalier.ronny@gmail.com> | 2016-03-02 23:01:38 +0100 |
---|---|---|
committer | Ronny Chevalier <chevalier.ronny@gmail.com> | 2016-03-03 18:46:58 +0100 |
commit | ebde5cb26179bf1518501891d2d2bc7d1f59ecc5 (patch) | |
tree | 21bd98b04734523c1c8f57694955b4d8c210227c /src/test/test-util.c | |
parent | 6571a64ec9f4a1fc979644999d52958726d924bc (diff) |
tests: move strv related tests to test-strv.c
Diffstat (limited to 'src/test/test-util.c')
-rw-r--r-- | src/test/test-util.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/test-util.c b/src/test/test-util.c index 3d764eac66..2b44b91170 100644 --- a/src/test/test-util.c +++ b/src/test/test-util.c @@ -522,25 +522,6 @@ static void test_log2i(void) { assert_se(log2i(INT_MAX) == sizeof(int)*8-2); } -static void test_foreach_string(void) { - const char * const t[] = { - "foo", - "bar", - "waldo", - NULL - }; - const char *x; - unsigned i = 0; - - FOREACH_STRING(x, "foo", "bar", "waldo") - assert_se(streq_ptr(t[i++], x)); - - assert_se(i == 3); - - FOREACH_STRING(x, "zzz") - assert_se(streq(x, "zzz")); -} - static void test_filename_is_valid(void) { char foo[FILENAME_MAX+2]; int i; @@ -1073,7 +1054,6 @@ int main(int argc, char *argv[]) { test_in_set(); test_writing_tmpfile(); test_log2i(); - test_foreach_string(); test_filename_is_valid(); test_files_same(); test_is_valid_documentation_url(); |