mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 00:12:19 +01: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
						Matthias Clasen
					
				
			
			
				
	
			
			
			
						parent
						
							dd394749f9
						
					
				
				
					commit
					01fd2551d7
				
			| @@ -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> | Thu Feb  5 00:56:28 2004  Matthias Clasen  <maclas@gmx.de> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | ||||||
|   | |||||||
| @@ -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> | Thu Feb  5 00:56:28 2004  Matthias Clasen  <maclas@gmx.de> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | ||||||
|   | |||||||
| @@ -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> | Thu Feb  5 00:56:28 2004  Matthias Clasen  <maclas@gmx.de> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | ||||||
|   | |||||||
| @@ -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> | Thu Feb  5 00:56:28 2004  Matthias Clasen  <maclas@gmx.de> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | ||||||
|   | |||||||
| @@ -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> | Thu Feb  5 00:56:28 2004  Matthias Clasen  <maclas@gmx.de> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | ||||||
|   | |||||||
| @@ -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> | Thu Feb  5 00:56:28 2004  Matthias Clasen  <maclas@gmx.de> | ||||||
|  |  | ||||||
| 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | 	* glib/gcompletion.c (g_completion_complete_utf8): New function which | ||||||
|   | |||||||
| @@ -58,7 +58,8 @@ test_mkstemp (void) | |||||||
|  |  | ||||||
|   strcpy (template, "foobar"); |   strcpy (template, "foobar"); | ||||||
|   fd = g_mkstemp (template); |   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); |   close (fd); | ||||||
|  |  | ||||||
|   strcpy (template, "fooXXXXXX"); |   strcpy (template, "fooXXXXXX"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user