Ticket #3986: tests: do not write parallel to logfile.

Since automake-1.12 (test-driver script) libcheck logfile is written
parallel by automake.
Print test logging to stdout and let write to logfile by automake only.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2020-12-30 15:23:26 +00:00 committed by Andrew Borodin
parent 79628270a7
commit 631cf4f3bf
57 changed files with 181 additions and 578 deletions

View File

@ -1,5 +1,5 @@
## Process this file with automake to create Makefile.in.
AUTOMAKE_OPTIONS = 1.5
AUTOMAKE_OPTIONS = 1.12
SUBDIRS = po lib src doc contrib misc

View File

@ -1,8 +1,5 @@
SUBDIRS = gentoo redhat
AUTOMAKE_OPTIONS = 1.5
EXTRA_DIST = pkginfo.in prototype.in
noinst_DATA = pkginfo prototype

View File

@ -17,7 +17,7 @@ To compile GNU Midnight commander from GIT, the following software is
required:
Autoconf 2.52 and above (latest is recommended)
Automake 1.5 and above (latest is recommended)
Automake 1.12 and above (latest is recommended)
Gettext 0.11.5 and above
Glib 2.30 and above

View File

@ -13,7 +13,7 @@ Build requirements for GNU Midnight Commander
- gcc
- make
- autoconf
- automake
- automake >= 1.12
- libtool
- glib2 >= 2.30
- slang2 or ncurses

View File

@ -43,22 +43,15 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
tcase_add_test (tc_core, test_library_independ);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -134,11 +134,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -146,13 +144,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_mc_build_filename, test_mc_build_filename_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "mc_build_filename.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -109,12 +109,10 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
char *cwd;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* writable directory where check creates temporary files */
cwd = g_get_current_dir ();
@ -127,13 +125,7 @@ main (void)
mctest_add_parameterized_test (tc_core, realpath_test, data_source);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "mc_realpath.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -238,11 +238,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -251,13 +249,7 @@ main (void)
tcase_add_test (tc_core, emulate__learn_save);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "config_string.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -211,11 +211,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -223,13 +221,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_user_config_paths, test_user_config_paths_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "user_configs_path.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -128,11 +128,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -141,13 +139,7 @@ main (void)
mctest_add_parameterized_test (tc_core, name_quote_test, data_source2);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "name_quote.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -94,24 +94,16 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
mctest_add_parameterized_test (tc_core, test_glob_prepare_replace_str,
test_glob_prepare_replace_str_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "glob_prepare_replace_str.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -106,24 +106,16 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
mctest_add_parameterized_test (tc_core, test_glob_translate_to_regex,
test_glob_translate_to_regex_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "glob_translate_to_regex.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -181,24 +181,16 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
mctest_add_parameterized_test (tc_core, test_hex_translate_to_regex,
test_hex_translate_to_regex_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "hex_translate_to_regex.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -140,24 +140,16 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
mctest_add_parameterized_test (tc_core, test_regex_process_escape_sequence,
test_regex_process_escape_sequence_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "regex_process_escape_sequence.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -210,24 +210,16 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
mctest_add_parameterized_test (tc_core, test_regex_replace_esc_seq_prepare,
test_regex_replace_esc_seq_prepare_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "regex_replace_esc_seq.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -83,24 +83,16 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
mctest_add_parameterized_test (tc_core, test_translate_replace_glob_to_regex,
test_translate_replace_glob_to_regex_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "translate_replace_glob_to_regex.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -359,11 +359,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -383,13 +381,7 @@ main (void)
tcase_add_test (tc_core, test_deserialize_config);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "serialize.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -269,11 +269,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -284,13 +282,7 @@ main (void)
tcase_add_loop_test (tc_core, filevercmp_test4, 0, filevercmp_test_ds4_len);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "filevercmp.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -143,11 +143,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -155,13 +153,7 @@ main (void)
mctest_add_parameterized_test (tc_core, parse_integer_test, parse_integer_test_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "parse_integer.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -170,11 +170,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -182,13 +180,7 @@ main (void)
mctest_add_parameterized_test (tc_core, str_replace_all_test, str_replace_all_test_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "replace__str_replace_all.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -119,11 +119,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -131,13 +129,7 @@ main (void)
mctest_add_parameterized_test (tc_core, str_verscmp_test, str_verscmp_test_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "str_verscmp.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -69,11 +69,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -81,13 +79,7 @@ main (void)
tcase_add_test (tc_core, fork_child);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "utilinux__my_system-fork_child.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -70,11 +70,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -82,13 +80,7 @@ main (void)
tcase_add_test (tc_core, fork_child_as_shell);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "utilinux__my_system-fork_child_shell.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -65,11 +65,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -77,13 +75,7 @@ main (void)
tcase_add_test (tc_core, fork_fail);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "utilinux__my_system-fork_fail.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -187,11 +187,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -199,13 +197,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_canonicalize_path, test_canonicalize_path_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "canonicalize_pathname.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -185,12 +185,10 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
char *cwd;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* writable directory where check creates temporary files */
cwd = g_get_current_dir ();
@ -203,13 +201,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_cd, test_cd_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "current_dir.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -237,11 +237,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -250,13 +248,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_path_equal_len, test_path_equal_len_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "path_cmp.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -126,11 +126,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -138,13 +136,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_path_length, test_path_length_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "path_len.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -435,11 +435,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -454,13 +452,7 @@ main (void)
test_vfs_path_relative_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "path_manipulations.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -268,11 +268,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -281,13 +279,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_path_to_str_flags, test_path_to_str_flags_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "path_recode.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -186,11 +186,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -199,13 +197,7 @@ main (void)
tcase_add_test (tc_core, test_path_deserialize);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "path_serialize.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -198,12 +198,10 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
char *cwd;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* writable directory where check creates temporary files */
cwd = g_get_current_dir ();
@ -217,13 +215,7 @@ main (void)
tcase_add_test (tc_core, test_vpath_to_str_filter);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "relative_cd.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -123,11 +123,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -136,13 +134,7 @@ main (void)
tcase_add_test (tc_core, test_mc_mkstemps);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "tempdir.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -191,23 +191,15 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
mctest_add_parameterized_test (tc_core, test_vfs_adjust_stat, test_vfs_adjust_stat_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "vfs_adjust_stat.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -143,11 +143,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -155,13 +153,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_vfs_get_encoding, test_vfs_get_encoding_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "vfs_get_encoding.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -408,11 +408,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -422,13 +420,7 @@ main (void)
tcase_add_test (tc_core, test_vfs_parse_ls_lga_unaligned);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "vfs_parse_ls_lga.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -109,11 +109,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -121,13 +119,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_strip_home, test_strip_home_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "vfs_path_from_str_flags.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -314,11 +314,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -331,13 +329,7 @@ main (void)
#endif
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "vfs_path_string_convert.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -154,11 +154,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -166,13 +164,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_vfs_prefix_to_class, test_vfs_prefix_to_class_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "vfs_prefix_to_class.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -152,11 +152,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -164,13 +162,7 @@ main (void)
tcase_add_test (tc_core, test_vfs_s_get_path);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "vfs_s_get_path.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -140,11 +140,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -153,13 +151,7 @@ main (void)
test_vfs_setup_cwd_symlink_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "vfs_setup_cwd.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -191,11 +191,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -203,13 +201,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_vfs_split, test_vfs_split_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "vfs_split.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -221,11 +221,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -234,13 +232,7 @@ main (void)
test_complete_engine_fill_completions_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "complete_engine.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -31,6 +31,8 @@
#include "lib/widget.h"
#include "tests/mctest.h"
/* --------------------------------------------------------------------------------------------- */
static int ref = 0;
@ -134,23 +136,15 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
tcase_add_test (tc_core, test_group_init_deinit);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "group_init_deinit.log");
srunner_run_all (sr, CK_NORMAL);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? 0 : 1;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -151,11 +151,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -163,13 +161,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_hotkey_equal, test_hotkey_equal_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "hotkey_equal.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -31,6 +31,8 @@
#include "lib/widget.h"
#include "tests/mctest.h"
/* --------------------------------------------------------------------------------------------- */
/* *INDENT-OFF* */
@ -95,23 +97,15 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
/* Add new tests here: *************** */
tcase_add_test (tc_core, test_widget_find_by_id);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "widget_find_by_id.log");
srunner_run_all (sr, CK_NORMAL);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? 0 : 1;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -112,11 +112,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -124,13 +122,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_x_basename, test_x_basename_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "x_basename.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -88,4 +88,22 @@
/*** inline functions ****************************************************************************/
static inline int
mctest_run_all (TCase * tc_core)
{
Suite *s;
SRunner *sr;
int number_failed;
s = suite_create (TEST_SUITE_NAME);
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "-");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}
#endif /* MC__TEST */

View File

@ -379,11 +379,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, my_setup, my_teardown);
@ -394,13 +392,7 @@ main (void)
#endif /* HAVE_CHARSET */
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "edit_complete_word_cmd.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -185,11 +185,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, my_setup, my_teardown);
@ -197,13 +195,7 @@ main (void)
tcase_add_test (tc_core, do_open_external_editor_or_viewer);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "execute__execute_external_editor_or_viewer.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -187,11 +187,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -200,13 +198,7 @@ main (void)
check_subtitute_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "execute__execute_get_external_cmd_opts_from_config.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -221,11 +221,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -236,13 +234,7 @@ main (void)
tcase_add_test (tc_core, the_file_is_remote);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "execute__execute_with_vfs_arg.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -158,11 +158,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -170,13 +168,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_empty_mean_home, test_empty_mean_home_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "cd_to.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -128,11 +128,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -140,14 +138,7 @@ main (void)
tcase_add_test (tc_core, test_examine_cd);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "examine_cd.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -113,11 +113,9 @@ END_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -125,13 +123,7 @@ main (void)
tcase_add_test (tc_core, sanitize_variables);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "exec_get_export_variables_ext.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -143,11 +143,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -155,13 +153,7 @@ main (void)
mctest_add_parameterized_test (tc_core, test_is_wildcarded, test_is_wildcarded_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "filegui_is_wildcarded.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */

View File

@ -163,11 +163,9 @@ END_PARAMETRIZED_TEST
int
main (void)
{
int number_failed;
TCase *tc_core;
Suite *s = suite_create (TEST_SUITE_NAME);
TCase *tc_core = tcase_create ("Core");
SRunner *sr;
tc_core = tcase_create ("Core");
tcase_add_checked_fixture (tc_core, setup, teardown);
@ -176,13 +174,7 @@ main (void)
mctest_add_parameterized_test (tc_core, get_random, get_random_ds);
/* *********************************** */
suite_add_tcase (s, tc_core);
sr = srunner_create (s);
srunner_set_log (sr, "get_random_hint.log");
srunner_run_all (sr, CK_ENV);
number_failed = srunner_ntests_failed (sr);
srunner_free (sr);
return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
return mctest_run_all (tc_core);
}
/* --------------------------------------------------------------------------------------------- */