END_TEST
+#if HAVE_WORKING_SETENV
START_TEST(test_srunner_run_suite_env)
{
/* This test makes the srunner_run_all function to run all the test
unsetenv ("CK_RUN_CASE");
}
END_TEST
+#endif /* HAVE_WORKING_SETENV */
Suite *make_selective_suite (void)
{
tcase_add_test (tc, test_srunner_no_tcase);
tcase_add_test (tc, test_srunner_suite_tcase);
tcase_add_test (tc, test_srunner_suite_no_tcase);
+
+#if HAVE_WORKING_SETENV
tcase_add_test (tc, test_srunner_run_suite_env);
tcase_add_test (tc, test_srunner_run_no_suite_env);
tcase_add_test (tc, test_srunner_run_tcase_env);
tcase_add_test (tc, test_srunner_no_tcase_env);
tcase_add_test (tc, test_srunner_suite_tcase_env);
tcase_add_test (tc, test_srunner_suite_no_tcase_env);
+#endif /* HAVE_WORKING_SETENV */
tcase_add_unchecked_fixture (tc,
selective_setup,