Weaken an g_assert() to a g_warning(), since apparently nothing in Posix
authorMatthias Clasen <maclas@gmx.de>
Thu, 5 Feb 2004 00:17:28 +0000 (00:17 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 5 Feb 2004 00:17:28 +0000 (00:17 +0000)
Thu Feb  5 01:19:12 2004  Matthias Clasen  <maclas@gmx.de>

* 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
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
tests/file-test.c

index 01d108f..0d86b91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Feb  5 01:19:12 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * 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  <maclas@gmx.de>
 
        * glib/gcompletion.c (g_completion_complete_utf8): New function which
index 01d108f..0d86b91 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb  5 01:19:12 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * 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  <maclas@gmx.de>
 
        * glib/gcompletion.c (g_completion_complete_utf8): New function which
index 01d108f..0d86b91 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb  5 01:19:12 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * 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  <maclas@gmx.de>
 
        * glib/gcompletion.c (g_completion_complete_utf8): New function which
index 01d108f..0d86b91 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb  5 01:19:12 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * 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  <maclas@gmx.de>
 
        * glib/gcompletion.c (g_completion_complete_utf8): New function which
index 01d108f..0d86b91 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb  5 01:19:12 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * 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  <maclas@gmx.de>
 
        * glib/gcompletion.c (g_completion_complete_utf8): New function which
index 01d108f..0d86b91 100644 (file)
@@ -1,3 +1,9 @@
+Thu Feb  5 01:19:12 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * 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  <maclas@gmx.de>
 
        * glib/gcompletion.c (g_completion_complete_utf8): New function which
index 89a3035..293a555 100644 (file)
@@ -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");