From 01fd2551d7fd9df7a569dd20c650dcfb6c2966e9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 5 Feb 2004 00:17:28 +0000 Subject: [PATCH] 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) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ tests/file-test.c | 3 ++- 7 files changed, 38 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 01d108f78..0d86b913d 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 01d108f78..0d86b913d 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 01d108f78..0d86b913d 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 01d108f78..0d86b913d 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 01d108f78..0d86b913d 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 01d108f78..0d86b913d 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 89a3035a2..293a55542 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"); -- 2.11.4.GIT