From b0c9ea5ca31e517f81ebbb9dd73f8150bd0982a1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 15 Jun 2008 00:49:30 +0000 Subject: [PATCH] Move docs around svn path=/trunk/; revision=7041 --- ChangeLog | 2 ++ docs/reference/ChangeLog | 3 +++ docs/reference/glib/tmpl/testing.sgml | 20 ++++++++++++++---- glib/gtestutils.c | 30 +-------------------------- 4 files changed, 22 insertions(+), 33 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f16acf58..6b4d50c71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2008-06-14 Matthias Clasen + * glib/gtestutils.c: Move docs around + * glib/gchecksum.h: Add docs. 2008-06-13 Matthias Clasen diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 5c4c8bad6..64ed90032 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,6 +1,9 @@ 2008-06-14 Matthias Clasen + * glib/tmpl/testing.sgml: Move docs around + * glib/tmpl/unicode.sgml: Document break types + * glib/tmpl/hash_tables.sgml: Add docs for GHashTableIter 2008-06-12 Matthias Clasen diff --git a/docs/reference/glib/tmpl/testing.sgml b/docs/reference/glib/tmpl/testing.sgml index 52a218a9d..bb442b52e 100644 --- a/docs/reference/glib/tmpl/testing.sgml +++ b/docs/reference/glib/tmpl/testing.sgml @@ -253,12 +253,24 @@ Returns %TRUE if tests are run in quite mode. - +Test traps are guards around forked tests. These flags +determine what traps to set. -@G_TEST_TRAP_SILENCE_STDOUT: -@G_TEST_TRAP_SILENCE_STDERR: -@G_TEST_TRAP_INHERIT_STDIN: +@G_TEST_TRAP_SILENCE_STDOUT: Redirect stdout of the test child to + /dev/null so it cannot be observed on the + console during test runs. The actual output is still captured + though to allow later tests with g_test_trap_assert_stdout(). + +@G_TEST_TRAP_SILENCE_STDERR: Redirect stderr of the test child to + /dev/null so it cannot be observed on the + console during test runs. The actual output is still captured + though to allow later tests with g_test_trap_assert_stderr(). + +@G_TEST_TRAP_INHERIT_STDIN: If this flag is given, stdin of the forked + child process is shared with stdin of its parent process. It is + redirected to /dev/null otherwise. + diff --git a/glib/gtestutils.c b/glib/gtestutils.c index cd7a2cd1e..b042714eb 100644 --- a/glib/gtestutils.c +++ b/glib/gtestutils.c @@ -1489,35 +1489,7 @@ test_time_stamp (void) * not return or that might abort. The forked test case is aborted * and considered failing if its run time exceeds @usec_timeout. * - * The forking behavior can be configured with the following flags: - * - * - * %G_TEST_TRAP_SILENCE_STDOUT - * - * redirect stdout of the test child to /dev/null - * so it cannot be observed on the console during test runs. - * The actual output is still captured though to allow later - * tests with g_test_trap_assert_stdout(). - * - * - * - * %G_TEST_TRAP_SILENCE_STDERR - * - * redirect stderr of the test child to /dev/null - * so it cannot be observed on the console during test runs. - * The actual output is still captured though to allow later - * tests with g_test_trap_assert_stderr(). - * - * - * - * %G_TEST_TRAP_INHERIT_STDIN - * - * if this flag is given, stdin of the forked child process is - * shared with stdin of its parent process. It is redirected to - * /dev/null otherwise. - * - * - * + * The forking behavior can be configured with the #GTestTrapFlags flags. * * In the following example, the test code forks, the forked child * process produces some sample output and exits successfully.