[libsoup] tests: fix socket-test to not depend on locale
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] tests: fix socket-test to not depend on locale
- Date: Sat, 16 May 2015 13:23:36 +0000 (UTC)
commit 3d2fbc1f4aeea692be162f2dc40ef1a5dd774689
Author: Dan Winship <danw gnome org>
Date: Sat May 16 09:23:15 2015 -0400
tests: fix socket-test to not depend on locale
https://bugzilla.gnome.org/show_bug.cgi?id=749397
tests/socket-test.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/socket-test.c b/tests/socket-test.c
index 9e32ca6..5b2b390 100644
--- a/tests/socket-test.c
+++ b/tests/socket-test.c
@@ -76,7 +76,10 @@ do_unconnected_socket_test (void)
/* listening socket fails with ENOTCONN */
g_test_expect_message ("libsoup", G_LOG_LEVEL_WARNING,
- "*endpoint is not connected*");
+ /* We can't check the error message since it comes from
+ * libc and is locale-dependent.
+ */
+ "*");
addr = soup_socket_get_remote_address (sock);
g_test_assert_expected_messages ();
g_assert_null (addr);
@@ -84,6 +87,7 @@ do_unconnected_socket_test (void)
soup_socket_disconnect (sock);
g_test_expect_message ("libsoup", G_LOG_LEVEL_WARNING,
+ /* This error message comes from soup-socket.c though */
"*socket not connected*");
addr = soup_socket_get_remote_address (sock);
g_test_assert_expected_messages ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]