diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2021-02-04 14:48:10 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-02-04 15:03:05 +0000 |
commit | c203bd70b5957f85616424b6fa374479372d06e3 (patch) | |
tree | 5a810500e4cf44b327516db0553157bd3ea1f0a6 /contrib/atf/atf-c/detail/test_helpers.h | |
parent | cb7cc72c546e0f87598961c3860e17391f42866c (diff) | |
parent | a3330ae736606c1812b9e9c4b9dcfdfb1a150dde (diff) | |
download | src-c203bd70b5957f85616424b6fa374479372d06e3.tar.gz src-c203bd70b5957f85616424b6fa374479372d06e3.zip |
Import atf 0.22 snapshot ca73d08c3fc1ecffc1f1c97458c31ab82c12bb01
This includes improvements to the atf-sh helper functions that
significantly reduce the number of spawned processes for each test
and therefore speeds up running the testsuite noticeably.
Diffstat (limited to 'contrib/atf/atf-c/detail/test_helpers.h')
-rw-r--r-- | contrib/atf/atf-c/detail/test_helpers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/atf/atf-c/detail/test_helpers.h b/contrib/atf/atf-c/detail/test_helpers.h index a601c293ffe4..90841f803c59 100644 --- a/contrib/atf/atf-c/detail/test_helpers.h +++ b/contrib/atf/atf-c/detail/test_helpers.h @@ -33,6 +33,7 @@ #include <atf-c.h> +#include <atf-c/detail/env.h> #include <atf-c/error_fwd.h> #include <atf-c/tc.h> @@ -46,8 +47,11 @@ struct atf_fs_path; ATF_TC(name); \ ATF_TC_HEAD(name, tc) \ { \ + const char *cc; \ atf_tc_set_md_var(tc, "descr", "Tests that the " hdrname " file can " \ "be included on its own, without any prerequisites"); \ + cc = atf_env_get_with_default("ATF_BUILD_CC", ATF_BUILD_CC); \ + atf_tc_set_md_var(tc, "require.progs", cc); \ } \ ATF_TC_BODY(name, tc) \ { \ @@ -58,7 +62,10 @@ struct atf_fs_path; ATF_TC(name); \ ATF_TC_HEAD(name, tc) \ { \ + const char *cc; \ atf_tc_set_md_var(tc, "descr", descr); \ + cc = atf_env_get_with_default("ATF_BUILD_CC", ATF_BUILD_CC); \ + atf_tc_set_md_var(tc, "require.progs", cc); \ } \ ATF_TC_BODY(name, tc) \ { \ |