From: Matthias Clasen Date: Thu, 5 Feb 2004 00:17:28 +0000 (+0000) Subject: Weaken an g_assert() to a g_warning(), since apparently nothing in Posix X-Git-Tag: GLIB_2_3_3~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01fd2551d7fd9df7a569dd20c650dcfb6c2966e9;p=platform%2Fupstream%2Fglib.git Weaken an g_assert() to a g_warning(), since apparently nothing in Posix Thu Feb 5 01:19:12 2004 Matthias Clasen * tests/file-test.c (test_mkstemp): Weaken an g_assert() to a g_warning(), since apparently nothing in Posix forces mkstemp() to reject templates without any X's. (#133397) --- diff --git a/ChangeLog b/ChangeLog index 01d108f..0d86b91 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 5 01:19:12 2004 Matthias Clasen + + * tests/file-test.c (test_mkstemp): Weaken an g_assert() to a + g_warning(), since apparently nothing in Posix forces mkstemp() + to reject templates without any X's. (#133397) + Thu Feb 5 00:56:28 2004 Matthias Clasen * glib/gcompletion.c (g_completion_complete_utf8): New function which diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 01d108f..0d86b91 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Thu Feb 5 01:19:12 2004 Matthias Clasen + + * tests/file-test.c (test_mkstemp): Weaken an g_assert() to a + g_warning(), since apparently nothing in Posix forces mkstemp() + to reject templates without any X's. (#133397) + Thu Feb 5 00:56:28 2004 Matthias Clasen * glib/gcompletion.c (g_completion_complete_utf8): New function which diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 01d108f..0d86b91 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +Thu Feb 5 01:19:12 2004 Matthias Clasen + + * tests/file-test.c (test_mkstemp): Weaken an g_assert() to a + g_warning(), since apparently nothing in Posix forces mkstemp() + to reject templates without any X's. (#133397) + Thu Feb 5 00:56:28 2004 Matthias Clasen * glib/gcompletion.c (g_completion_complete_utf8): New function which diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 01d108f..0d86b91 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Thu Feb 5 01:19:12 2004 Matthias Clasen + + * tests/file-test.c (test_mkstemp): Weaken an g_assert() to a + g_warning(), since apparently nothing in Posix forces mkstemp() + to reject templates without any X's. (#133397) + Thu Feb 5 00:56:28 2004 Matthias Clasen * glib/gcompletion.c (g_completion_complete_utf8): New function which diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 01d108f..0d86b91 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Thu Feb 5 01:19:12 2004 Matthias Clasen + + * tests/file-test.c (test_mkstemp): Weaken an g_assert() to a + g_warning(), since apparently nothing in Posix forces mkstemp() + to reject templates without any X's. (#133397) + Thu Feb 5 00:56:28 2004 Matthias Clasen * glib/gcompletion.c (g_completion_complete_utf8): New function which diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 01d108f..0d86b91 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Thu Feb 5 01:19:12 2004 Matthias Clasen + + * tests/file-test.c (test_mkstemp): Weaken an g_assert() to a + g_warning(), since apparently nothing in Posix forces mkstemp() + to reject templates without any X's. (#133397) + Thu Feb 5 00:56:28 2004 Matthias Clasen * glib/gcompletion.c (g_completion_complete_utf8): New function which diff --git a/tests/file-test.c b/tests/file-test.c index 89a3035..293a555 100644 --- a/tests/file-test.c +++ b/tests/file-test.c @@ -58,7 +58,8 @@ test_mkstemp (void) strcpy (template, "foobar"); fd = g_mkstemp (template); - g_assert (fd == -1 && "g_mkstemp works even if template doesn't end in XXXXXX"); + if (fd != -1) + g_warning ("g_mkstemp works even if template doesn't end in XXXXXX"); close (fd); strcpy (template, "fooXXXXXX");