From 1f3a4d6ae67d679e707376c13a62dc032ce7bd3f Mon Sep 17 00:00:00 2001 From: brarcher Date: Sun, 22 Sep 2013 17:23:00 +0000 Subject: [PATCH] skip tests requiring setenv if none is available These tests were not protected by the HAVE_WORKING_SETENV variable, but needed to be. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@770 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- tests/check_check_log.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/check_check_log.c b/tests/check_check_log.c index 4534a16..e598b26 100644 --- a/tests/check_check_log.c +++ b/tests/check_check_log.c @@ -187,13 +187,17 @@ Suite *make_log_suite(void) suite_add_tcase(s, tc_core); tcase_add_test(tc_core, test_set_log); +#if HAVE_WORKING_SETENV tcase_add_test(tc_core, test_set_log_env); +#endif /* HAVE_WORKING_SETENV */ tcase_add_test(tc_core, test_no_set_log); tcase_add_test(tc_core, test_double_set_log); suite_add_tcase(s, tc_core_xml); tcase_add_test(tc_core_xml, test_set_xml); +#if HAVE_WORKING_SETENV tcase_add_test(tc_core_xml, test_set_xml_env); +#endif /* HAVE_WORKING_SETENV */ tcase_add_test(tc_core_xml, test_no_set_xml); tcase_add_test(tc_core_xml, test_double_set_xml); -- 2.40.0