gtester.c: adapted to become a rudimentary test binary launcher.
authorTim Janik <timj@src.gnome.org>
Tue, 20 Nov 2007 15:00:41 +0000 (15:00 +0000)
committerTim Janik <timj@src.gnome.org>
Tue, 20 Nov 2007 15:00:41 +0000 (15:00 +0000)
commitd0709d04cb2300487158ba9d58fd4a678fe07128
tree2c1f018acc5c6aeeb4182579c08b3126282b0726
parent39cf400cdf2a5b1079b5bf0fd9b663f9c87bc1bf
gtester.c: adapted to become a rudimentary test binary launcher.

* gtester.c: increased read buffer size to match common unix pipe buffer size.
added argument parsing and usage. changed io handling to capture and replicate
stdout. fixed io handlers to be cleaned up when the child process exits (catch
G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
structure, to keep running until the child process exits and all io has been
processed. launch the test binaries given on the command line. don't quit when
a child couldn't be launched but --keep-going was specified.

svn path=/trunk/; revision=5895
glib/gtester.c