glib/tests
Tor Lillqvist 1f04f2cce2 Ignore the G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully
2002-11-17  Tor Lillqvist  <tml@iki.fi>

	* glib/gspawn-win32.c (g_spawn_async_with_pipes): Ignore the
	G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully implemented
	on Windows, at least not now. Always pass dont_wait as TRUE to
	do_spawn_with_pipes(). The semantics of the dont_wait parameter is
	very different from the semantics of the intermediate_child
	parameter to fork_exec_with_pipes() in the Unix version. This
	fixes a serious bug, g_spawn_async() in fact behaved
	synchronously.

	(do_spawn_with_pipes, do_spawn): Rename from
	fork_exec_with_pipes() and do_exec(), those names were from the
	Unix bersion, and misleading.

	(close_and_invalidate): Don't try to close invalid fds.

	* glib/gspawn.c (g_spawn_async_with_pipes): Add warning about
	Windows behaviour. There is no fork(), so the child_setup()
	function is in fact called in the parent.

	* glib/gspawn-win32-helper.c (WinMain): Insert spaces in argv
	debugging output.

	* tests/spawn-test-win32-gui.c: New file. Test program to be
	linked as a GUI application. Behaves differently depending on how
	invoked (by spawn-test).

	* tests/spawn-test.c (run_tests): On Win32, run the
	spawn-test-win32-gui program, too, in several ways, synchronously
	and asynchronously.

	* tests/Makefile.am: Corresponding change.
2002-11-17 03:52:55 +00:00
..
gobject added some assertions to test g_signal_get_invocation_hint(). 2001-12-18 20:38:58 +00:00
markups New testcases. 2002-05-18 22:06:54 +00:00
.cvsignore */.cvsignore: Add various Win32 related file types. 2001-11-24 18:53:03 +00:00
array-test.c Add missing const. (g_strsplit): Add g_return_val_if_fail for case of 2001-07-19 20:07:41 +00:00
casefold.txt Use G_N_ELEMENTS rather than a custom macro. 2001-07-02 00:49:21 +00:00
casemap.txt Use G_N_ELEMENTS rather than a custom macro. 2001-07-02 00:49:21 +00:00
cxx-test.C Now that we check for a C++ compiler in configure.in anyway, I added a 2001-05-29 14:17:23 +00:00
date-test.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
dirname-test.c Add missing const. (g_strsplit): Add g_return_val_if_fail for case of 2001-07-19 20:07:41 +00:00
gen-casefold-txt.pl Use G_N_ELEMENTS rather than a custom macro. 2001-07-02 00:49:21 +00:00
gen-casemap-txt.pl Use G_N_ELEMENTS rather than a custom macro. 2001-07-02 00:49:21 +00:00
gio-test.c add -DG_DISABLED_DEPRECATED 2002-10-15 22:16:57 +00:00
hash-test.c Fix access to freed memory in test case (Miroslaw Dobrzanski-Neumann). 2002-02-08 17:34:15 +00:00
iochannel-test-infile Modified Files: glib/ChangeLog glib/glib.def glib/glib/giochannel.c 2001-07-20 20:14:37 +00:00
iochannel-test.c use gsize instead of int where appropriate (64-bit cleanliness fix). 2002-10-15 22:39:16 +00:00
libmoduletestplugin_a.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
libmoduletestplugin_b.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
list-test.c Add missing const. (g_strsplit): Add g_return_val_if_fail for case of 2001-07-19 20:07:41 +00:00
mainloop-test.c add -DG_DISABLED_DEPRECATED 2002-10-15 22:16:57 +00:00
Makefile.am Ignore the G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully 2002-11-17 03:52:55 +00:00
makefile.mingw.in Default to --disable-gtk-doc, to avoid Jade setup hassles. 2002-03-05 05:18:23 +00:00
makefile.msc.in no sym links on win32, no lstat in msvcrt 2002-02-10 16:42:36 +00:00
markup-test.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
module-test.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
node-test.c Implement G_LEVEL_ORDER correctly. 2001-11-26 19:08:46 +00:00
patterntest.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
qsort-test.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
queue-test.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
rand-test.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
relation-test.c Add missing const. (g_strsplit): Add g_return_val_if_fail for case of 2001-07-19 20:07:41 +00:00
run-markup-tests.sh New testcases. 2002-05-18 22:06:54 +00:00
shell-test.c 1.3.13 2002-01-29 20:23:48 +00:00
slist-test.c Add missing const. (g_strsplit): Add g_return_val_if_fail for case of 2001-07-19 20:07:41 +00:00
spawn-test-win32-gui.c Ignore the G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully 2002-11-17 03:52:55 +00:00
spawn-test.c Ignore the G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully 2002-11-17 03:52:55 +00:00
strfunc-test.c hu Jul 25 14:23:15 2002 Owen Taylor <otaylor@redhat.com> 2002-07-26 19:59:07 +00:00
string-test.c add -DG_DISABLED_DEPRECATED 2002-10-15 22:16:57 +00:00
strtod-test.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
testgdate.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
testgdateparser.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
testglib.c add -DG_DISABLED_DEPRECATED 2002-10-15 22:16:57 +00:00
thread-test.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
threadpool-test.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
timeloop-basic.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
timeloop-closure.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
timeloop.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
tree-test.c add -DG_DISABLED_DEPRECATED 2002-10-15 22:16:57 +00:00
type-test.c Add missing const. (g_strsplit): Add g_return_val_if_fail for case of 2001-07-19 20:07:41 +00:00
unicode-caseconv.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
unicode-collate.c add -DG_DISABLED_DEPRECATED 2002-10-15 22:16:57 +00:00
unicode-encoding.c Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN throughout the 2002-07-04 15:19:30 +00:00
unicode-normalize.c add -DG_DISABLED_DEPRECATED 2002-10-15 22:16:57 +00:00
uri-test.c Include config.h so DISABLE_MEMPOOLS actually has an effect. (#96437, 2002-11-04 20:09:48 +00:00
utf8.txt move $enable_debug down below checks for GCC to avoid setting CFLAGS 2001-01-05 21:22:47 +00:00