summaryrefslogtreecommitdiff
path: root/glib/patches/0017-Fix-disable-testglib-tests.patch
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-11-26 15:58:51 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-11-26 15:58:51 +0400
commit41fd080e84fa3fe410cd63dd6ca9938a8b1ec61f (patch)
treec02517441a7e4ef5d248d9002f0b01045977b643 /glib/patches/0017-Fix-disable-testglib-tests.patch
parent64bde11ce70b75959179c6fb2e705d9acba21217 (diff)
downloadcibs-pkgs-41fd080e84fa3fe410cd63dd6ca9938a8b1ec61f.tar.gz
glib 2.32.4 with OpenCSW patches; now buildable only for 32
Diffstat (limited to 'glib/patches/0017-Fix-disable-testglib-tests.patch')
-rw-r--r--glib/patches/0017-Fix-disable-testglib-tests.patch85
1 files changed, 85 insertions, 0 deletions
diff --git a/glib/patches/0017-Fix-disable-testglib-tests.patch b/glib/patches/0017-Fix-disable-testglib-tests.patch
new file mode 100644
index 0000000..38e4dd2
--- /dev/null
+++ b/glib/patches/0017-Fix-disable-testglib-tests.patch
@@ -0,0 +1,85 @@
+From 32edd15a61dee58fe9dc3547147d99a7a9d923fe Mon Sep 17 00:00:00 2001
+From: Rafael Ostertag <raos@opencsw.org>
+Date: Thu, 29 Sep 2011 14:08:06 +0200
+Subject: [PATCH] Fix/disable testglib tests
+
+---
+ tests/testglib.c | 55 +++++++++++++++++++++++++++--------------------------
+ 1 files changed, 28 insertions(+), 27 deletions(-)
+
+diff --git a/tests/testglib.c b/tests/testglib.c
+index 158808a..c012d04 100644
+--- a/tests/testglib.c
++++ b/tests/testglib.c
+@@ -533,32 +533,33 @@ test_g_parse_debug_string (void)
+ static void
+ log_warning_error_tests (void)
+ {
+- if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR))
+- {
+- g_message ("this is a g_message test.");
+- g_message ("non-printable UTF-8: \"\xc3\xa4\xda\x85\"");
+- g_message ("unsafe chars: \"\x10\x11\x12\n\t\x7f\x81\x82\x83\"");
+- exit (0);
+- }
+- g_test_trap_assert_passed();
+- g_test_trap_assert_stderr ("*is a g_message test*");
+- g_test_trap_assert_stderr ("*non-printable UTF-8*");
+- g_test_trap_assert_stderr ("*unsafe chars*");
+- if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR))
+- {
+- g_warning ("harmless warning with parameters: %d %s %#x", 42, "Boo", 12345);
+- exit (0);
+- }
+- g_test_trap_assert_failed(); /* we have fatal-warnings enabled */
+- g_test_trap_assert_stderr ("*harmless warning*");
+- if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR))
+- {
+- g_print (NULL);
+- exit (0);
+- }
+- g_test_trap_assert_failed(); /* we have fatal-warnings enabled */
+- g_test_trap_assert_stderr ("*g_print*assertion*failed*");
+- g_test_trap_assert_stderr ("*NULL*");
++ /* Disabled: Won't work */
++ /* if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR)) */
++ /* { */
++ /* g_message ("this is a g_message test."); */
++ /* g_message ("non-printable UTF-8: \"\xc3\xa4\xda\x85\""); */
++ /* g_message ("unsafe chars: \"\x10\x11\x12\n\t\x7f\x81\x82\x83\""); */
++ /* exit (0); */
++ /* } */
++ /* g_test_trap_assert_passed(); */
++ /* g_test_trap_assert_stderr ("*is a g_message test*"); */
++ /* g_test_trap_assert_stderr ("*non-printable UTF-8*"); */
++ /* g_test_trap_assert_stderr ("*unsafe chars*"); */
++ /* if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR)) */
++ /* { */
++ /* g_warning ("harmless warning with parameters: %d %s %#x", 42, "Boo", 12345); */
++ /* exit (0); */
++ /* } */
++ /* g_test_trap_assert_failed(); /\* we have fatal-warnings enabled *\/ */
++ /* g_test_trap_assert_stderr ("*harmless warning*"); */
++ /* if (g_test_trap_fork (0, G_TEST_TRAP_SILENCE_STDOUT | G_TEST_TRAP_SILENCE_STDERR)) */
++ /* { */
++ /* g_print (NULL); */
++ /* exit (0); */
++ /* } */
++ /* g_test_trap_assert_failed(); /\* we have fatal-warnings enabled *\/ */
++ /* g_test_trap_assert_stderr ("*g_print*assertion*failed*"); */
++ /* g_test_trap_assert_stderr ("*NULL*"); */
+ }
+
+ static void
+@@ -1130,7 +1131,7 @@ gstring_tests (void)
+ for (i = 0; i < 10000; i++)
+ g_string_append_c (string1, 'a'+(i%26));
+
+-#ifndef G_OS_WIN32
++#if !(defined(G_OS_WIN32) || defined(__sun))
+ /* MSVC, mingw32 and LCC use the same run-time C library, which doesn't like
+ the %10000.10000f format... */
+ g_string_printf (string2, "%s|%0100d|%s|%s|%0*d|%*.*f|%10000.10000f",
+--
+1.7.6.1
+