mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
Merge branch 'wip/pwithnall/fix-bsd-string-test' into 'main'
tests: Fix string test failure on BSDs See merge request GNOME/glib!3731
This commit is contained in:
commit
cdc37f051c
@ -319,6 +319,8 @@ test_string_append_vprintf (void)
|
||||
|
||||
string_append_vprintf_va (string, "some %s placeholders", "format");
|
||||
|
||||
/* vasprintf() placeholder checks on BSDs are less strict, so skip these checks if so */
|
||||
#if !defined(__APPLE__) && !defined(__FreeBSD__)
|
||||
if (g_test_undefined ())
|
||||
{
|
||||
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
|
||||
@ -330,6 +332,7 @@ test_string_append_vprintf (void)
|
||||
#pragma GCC diagnostic pop
|
||||
g_test_assert_expected_messages ();
|
||||
}
|
||||
#endif
|
||||
|
||||
g_assert_cmpstr (string->str, ==, "firsthalfsome format placeholders");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user