summaryrefslogtreecommitdiff
path: root/tests/fe-common
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fe-common')
-rw-r--r--tests/fe-common/core/Makefile.am3
-rw-r--r--tests/fe-common/core/test-formats.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/fe-common/core/Makefile.am b/tests/fe-common/core/Makefile.am
index 070b6052..f048e95c 100644
--- a/tests/fe-common/core/Makefile.am
+++ b/tests/fe-common/core/Makefile.am
@@ -21,8 +21,7 @@ test_formats_LDADD = \
../../../src/fe-common/core/libfe_common_core.a \
../../../src/core/libcore.a \
../../../src/lib-config/libirssi_config.a \
- @GLIB_LIBS@ \
- @OPENSSL_LIBS@
+ @PROG_LIBS@
test_formats_SOURCES = \
test-formats.c
diff --git a/tests/fe-common/core/test-formats.c b/tests/fe-common/core/test-formats.c
index 9ef23fd6..aee5a219 100644
--- a/tests/fe-common/core/test-formats.c
+++ b/tests/fe-common/core/test-formats.c
@@ -15,7 +15,7 @@ format_real_length_test_case const format_real_length_fixtures[] = {
{
.description = "",
.input = "%4%w ",
- .result = { 0, 5, 5, -1 },
+ .result = { 4, 5, 5, -1 },
},
};
@@ -31,7 +31,9 @@ int main(int argc, char **argv)
g_free(name);
}
+#if GLIB_CHECK_VERSION(2,38,0)
g_test_set_nonfatal_assertions();
+#endif
return g_test_run();
}