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:
Matthias Clasen
2004-02-05 00:17:28 +00:00
committed by Matthias Clasen
parent dd394749f9
commit 01fd2551d7
7 changed files with 38 additions and 1 deletions

View 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");