diff --git a/meson.build b/meson.build index 9bde97d6..aa4abc63 100644 --- a/meson.build +++ b/meson.build @@ -59,6 +59,7 @@ add_project_arguments([ '-Wno-unused-parameter', ], language: 'c') +analyzer_args = [] if is_debug add_project_arguments([ '-ggdb3', @@ -71,7 +72,7 @@ if is_debug '-Wpointer-arith' ], language: 'c') if cc.get_id() == 'gcc' - add_project_arguments('-fanalyzer', language: 'c') + analyzer_args += '-fanalyzer' endif endif @@ -501,6 +502,7 @@ profanity_exe = executable( profanity_sources, files('src/main.c'), config_h, + c_args: analyzer_args, dependencies: profanity_deps, include_directories: inc, install: true, @@ -710,7 +712,7 @@ if get_option('tests') build_by_default: false, ) - test('functional tests', functionaltests) + test('functional tests', functionaltests, timeout: 1800) endif else warning('cmocka not found, tests will not be built') diff --git a/tests/functionaltests/proftest.c b/tests/functionaltests/proftest.c index 41d7d60f..8c655977 100644 --- a/tests/functionaltests/proftest.c +++ b/tests/functionaltests/proftest.c @@ -298,9 +298,9 @@ init_prof_test(void** state) prof_start(); usleep(1000 * 500); // Wait for profanity to start + prof_expect_timeout = 30; assert_true(prof_output_regex("Profanity")); - prof_expect_timeout = 30; // set UI options to make expect assertions faster and more reliable prof_input("/inpblock timeout 5"); prof_output_regex("Input blocking set to 5 milliseconds");