mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
glib/gtestutils: Introduce and use a g_test_case_free function
This commit is contained in:
parent
0786031804
commit
f0c0d8b67c
@ -3638,6 +3638,7 @@ g_test_get_root
|
|||||||
g_test_suite_add
|
g_test_suite_add
|
||||||
g_test_suite_add_suite
|
g_test_suite_add_suite
|
||||||
g_test_run_suite
|
g_test_run_suite
|
||||||
|
g_test_case_free
|
||||||
|
|
||||||
<SUBSECTION Private>
|
<SUBSECTION Private>
|
||||||
g_test_trap_assertions
|
g_test_trap_assertions
|
||||||
|
@ -2994,6 +2994,21 @@ g_test_run_suite (GTestSuite *suite)
|
|||||||
return n_bad;
|
return n_bad;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* g_test_case_free:
|
||||||
|
* @test_case: a #GTestCase
|
||||||
|
*
|
||||||
|
* Free the @test_case.
|
||||||
|
*
|
||||||
|
* Since: 2.70
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
g_test_case_free (GTestCase *test_case)
|
||||||
|
{
|
||||||
|
g_free (test_case->name);
|
||||||
|
g_slice_free (GTestCase, test_case);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtest_default_log_handler (const gchar *log_domain,
|
gtest_default_log_handler (const gchar *log_domain,
|
||||||
GLogLevelFlags log_level,
|
GLogLevelFlags log_level,
|
||||||
|
@ -506,6 +506,9 @@ void g_test_suite_add_suite (GTestSuite *suite,
|
|||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
int g_test_run_suite (GTestSuite *suite);
|
int g_test_run_suite (GTestSuite *suite);
|
||||||
|
|
||||||
|
GLIB_AVAILABLE_IN_2_70
|
||||||
|
void g_test_case_free (GTestCase *test_case);
|
||||||
|
|
||||||
GLIB_AVAILABLE_IN_ALL
|
GLIB_AVAILABLE_IN_ALL
|
||||||
void g_test_trap_assertions (const char *domain,
|
void g_test_trap_assertions (const char *domain,
|
||||||
const char *file,
|
const char *file,
|
||||||
|
Loading…
Reference in New Issue
Block a user