summaryrefslogtreecommitdiff
path: root/tests/fe-common/core/test-formats.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fe-common/core/test-formats.c')
-rw-r--r--tests/fe-common/core/test-formats.c4
1 files changed, 3 insertions, 1 deletions
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();
}