diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-02-05 00:17:28 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-02-05 00:17:28 +0000 |
commit | 01fd2551d7fd9df7a569dd20c650dcfb6c2966e9 (patch) | |
tree | 25139fd75051aec1d26e5bdd23fd7b9cd7b560f3 /tests/file-test.c | |
parent | dd394749f9dbdae65163a99d014b9cf8cf057e73 (diff) |
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)
Diffstat (limited to 'tests/file-test.c')
-rw-r--r-- | tests/file-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |