mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Weaken an g_assert() to a g_warning(), since apparently nothing in Posix
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)
This commit is contained in:
committed by
Matthias Clasen
parent
dd394749f9
commit
01fd2551d7
@@ -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");
|
||||
|
Reference in New Issue
Block a user