From 06b2b061b361cce72d282e63b74d08687b2d022d Mon Sep 17 00:00:00 2001 From: Marc Ransome Date: Mon, 25 Mar 2024 21:59:57 +0000 Subject: [PATCH] Disable unit test requiring isatty() See https://github.com/actions/runner/issues/241 --- test/test_config.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/test/test_config.c b/test/test_config.c index bc7ecdc..7a7a7a4 100644 --- a/test/test_config.c +++ b/test/test_config.c @@ -185,21 +185,6 @@ static void flog_config_with_long_subsystem_option_and_no_subsystem_fails(void * assert_int_equal(error, FLOG_ERROR_OPTS); } -static void -flog_config_new_with_stdin_tty_and_no_message_args_fails(void **state) { - FlogError error = TEST_ERROR; - MOCK_ARGS( - TEST_PROGRAM_NAME, - TEST_OPTION_LEVEL_SHORT, - TEST_OPTION_LEVEL_VALUE_INFO - ) - - FlogConfig *config = flog_config_new(mock_argc, mock_argv, &error); - - assert_null(config); - assert_int_equal(error, FLOG_ERROR_MSG); -} - static void flog_config_new_with_message_succeeds(void **state) { FlogError error = TEST_ERROR; @@ -487,7 +472,6 @@ int main(void) { cmocka_unit_test(flog_config_new_with_long_category_opt_and_no_subsystem_opt_fails), cmocka_unit_test(flog_config_with_short_subsystem_option_and_no_subsystem_fails), cmocka_unit_test(flog_config_with_long_subsystem_option_and_no_subsystem_fails), - cmocka_unit_test(flog_config_new_with_stdin_tty_and_no_message_args_fails), // flog_config_new() success tests cmocka_unit_test(flog_config_new_with_message_succeeds),