mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
Doc: small fixes
This commit adds the GTestSubprocessFlags enum to the docs, and fixes several minor typos in various places. https://bugzilla.gnome.org/show_bug.cgi?id=703254
This commit is contained in:
@@ -2940,6 +2940,7 @@ g_test_expect_message
|
|||||||
g_test_assert_expected_messages
|
g_test_assert_expected_messages
|
||||||
|
|
||||||
GTestTrapFlags
|
GTestTrapFlags
|
||||||
|
GTestSubprocessFlags
|
||||||
g_test_trap_subprocess
|
g_test_trap_subprocess
|
||||||
g_test_trap_has_passed
|
g_test_trap_has_passed
|
||||||
g_test_trap_reached_timeout
|
g_test_trap_reached_timeout
|
||||||
|
@@ -62,7 +62,7 @@
|
|||||||
* |[
|
* |[
|
||||||
* void _theoretical_frobnitz_async (Theoretical *t,
|
* void _theoretical_frobnitz_async (Theoretical *t,
|
||||||
* GCancellable *c,
|
* GCancellable *c,
|
||||||
* GAsyncReadyCallback *cb,
|
* GAsyncReadyCallback cb,
|
||||||
* gpointer u);
|
* gpointer u);
|
||||||
*
|
*
|
||||||
* gboolean _theoretical_frobnitz_finish (Theoretical *t,
|
* gboolean _theoretical_frobnitz_finish (Theoretical *t,
|
||||||
|
@@ -46,7 +46,7 @@
|
|||||||
* Eventually, you will call a method such as
|
* Eventually, you will call a method such as
|
||||||
* g_task_return_pointer() or g_task_return_error(), which will
|
* g_task_return_pointer() or g_task_return_error(), which will
|
||||||
* save the value you give it and then invoke the task's callback
|
* save the value you give it and then invoke the task's callback
|
||||||
* function (waiting until the next next iteration of the main
|
* function (waiting until the next iteration of the main
|
||||||
* loop first, if necessary). The caller will pass the #GTask back
|
* loop first, if necessary). The caller will pass the #GTask back
|
||||||
* to the operation's finish function (as a #GAsyncResult), and
|
* to the operation's finish function (as a #GAsyncResult), and
|
||||||
* you can use g_task_propagate_pointer() or the like to extract
|
* you can use g_task_propagate_pointer() or the like to extract
|
||||||
|
@@ -2483,13 +2483,13 @@ g_test_trap_fork (guint64 usec_timeout,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_test_trap_subprocess:
|
* g_test_trap_subprocess:
|
||||||
* @test_name: Test to run in a subprocess
|
* @test_path: Test to run in a subprocess
|
||||||
* @usec_timeout: Timeout for the subprocess test in micro seconds.
|
* @usec_timeout: Timeout for the subprocess test in micro seconds.
|
||||||
* @test_flags: Flags to modify subprocess behaviour.
|
* @test_flags: Flags to modify subprocess behaviour.
|
||||||
*
|
*
|
||||||
* Respawns the test program to run only @test_name in a subprocess.
|
* Respawns the test program to run only @test_path in a subprocess.
|
||||||
* This can be used for a test case that might not return, or that
|
* This can be used for a test case that might not return, or that
|
||||||
* might abort. @test_name will normally be the name of the parent
|
* might abort. @test_path will normally be the name of the parent
|
||||||
* test, followed by "<literal>/subprocess/</literal>" and then a name
|
* test, followed by "<literal>/subprocess/</literal>" and then a name
|
||||||
* for the specific subtest (or just ending with
|
* for the specific subtest (or just ending with
|
||||||
* "<literal>/subprocess</literal>" if the test only has one child
|
* "<literal>/subprocess</literal>" if the test only has one child
|
||||||
|
Reference in New Issue
Block a user