mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 05:06:21 +00:00
tests: remove cflag -w and fix warnings
The flag hides errors. But we want unit tests to be correct in order to reveal errors in the main code. The patch removes tests_unittests_unittests_CFLAGS which makes autotools use AM_CFLAGS instead. Therefore, unit tests are built with flags derived from configure.ac.
This commit is contained in:
@@ -64,11 +64,11 @@ returns_all_added_features(void **state)
|
||||
GList *features = disco_get_features();
|
||||
|
||||
assert_int_equal(g_list_length(features), 5);
|
||||
assert_true(g_list_find_custom(features, "first:feature", g_strcmp0));
|
||||
assert_true(g_list_find_custom(features, "second:feature", g_strcmp0));
|
||||
assert_true(g_list_find_custom(features, "third:feature", g_strcmp0));
|
||||
assert_true(g_list_find_custom(features, "fourth:feature", g_strcmp0));
|
||||
assert_true(g_list_find_custom(features, "fifth:feature", g_strcmp0));
|
||||
assert_true(g_list_find_custom(features, "first:feature", (GCompareFunc)g_strcmp0));
|
||||
assert_true(g_list_find_custom(features, "second:feature", (GCompareFunc)g_strcmp0));
|
||||
assert_true(g_list_find_custom(features, "third:feature", (GCompareFunc)g_strcmp0));
|
||||
assert_true(g_list_find_custom(features, "fourth:feature", (GCompareFunc)g_strcmp0));
|
||||
assert_true(g_list_find_custom(features, "fifth:feature", (GCompareFunc)g_strcmp0));
|
||||
|
||||
g_list_free(features);
|
||||
disco_close();
|
||||
|
||||
Reference in New Issue
Block a user