Get configuration variable with default value for not breaking default setting
Reported by: markj Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
0bf48626aa
commit
84922a5d4c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350700
@ -259,7 +259,7 @@ ATF_TC_BODY(ptrace__parent_sees_exit_after_child_debugger, tc)
|
|||||||
int cpipe[2], dpipe[2], status;
|
int cpipe[2], dpipe[2], status;
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
if (atf_tc_get_config_var_as_bool(tc, "ci"))
|
if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
|
||||||
atf_tc_skip("https://bugs.freebsd.org/239399");
|
atf_tc_skip("https://bugs.freebsd.org/239399");
|
||||||
|
|
||||||
ATF_REQUIRE(pipe(cpipe) == 0);
|
ATF_REQUIRE(pipe(cpipe) == 0);
|
||||||
@ -803,7 +803,7 @@ ATF_TC_BODY(ptrace__follow_fork_both_attached_unrelated_debugger, tc)
|
|||||||
pid_t children[2], fpid, wpid;
|
pid_t children[2], fpid, wpid;
|
||||||
int cpipe[2], status;
|
int cpipe[2], status;
|
||||||
|
|
||||||
if (atf_tc_get_config_var_as_bool(tc, "ci"))
|
if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
|
||||||
atf_tc_skip("https://bugs.freebsd.org/239397");
|
atf_tc_skip("https://bugs.freebsd.org/239397");
|
||||||
|
|
||||||
ATF_REQUIRE(pipe(cpipe) == 0);
|
ATF_REQUIRE(pipe(cpipe) == 0);
|
||||||
@ -874,7 +874,7 @@ ATF_TC_BODY(ptrace__follow_fork_child_detached_unrelated_debugger, tc)
|
|||||||
pid_t children[2], fpid, wpid;
|
pid_t children[2], fpid, wpid;
|
||||||
int cpipe[2], status;
|
int cpipe[2], status;
|
||||||
|
|
||||||
if (atf_tc_get_config_var_as_bool(tc, "ci"))
|
if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
|
||||||
atf_tc_skip("https://bugs.freebsd.org/239292");
|
atf_tc_skip("https://bugs.freebsd.org/239292");
|
||||||
|
|
||||||
ATF_REQUIRE(pipe(cpipe) == 0);
|
ATF_REQUIRE(pipe(cpipe) == 0);
|
||||||
@ -940,7 +940,7 @@ ATF_TC_BODY(ptrace__follow_fork_parent_detached_unrelated_debugger, tc)
|
|||||||
pid_t children[2], fpid, wpid;
|
pid_t children[2], fpid, wpid;
|
||||||
int cpipe[2], status;
|
int cpipe[2], status;
|
||||||
|
|
||||||
if (atf_tc_get_config_var_as_bool(tc, "ci"))
|
if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
|
||||||
atf_tc_skip("https://bugs.freebsd.org/239425");
|
atf_tc_skip("https://bugs.freebsd.org/239425");
|
||||||
|
|
||||||
ATF_REQUIRE(pipe(cpipe) == 0);
|
ATF_REQUIRE(pipe(cpipe) == 0);
|
||||||
@ -2089,7 +2089,7 @@ ATF_TC_BODY(ptrace__PT_KILL_competing_stop, tc)
|
|||||||
struct ptrace_lwpinfo pl;
|
struct ptrace_lwpinfo pl;
|
||||||
struct sched_param sched_param;
|
struct sched_param sched_param;
|
||||||
|
|
||||||
if (atf_tc_get_config_var_as_bool(tc, "ci"))
|
if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
|
||||||
atf_tc_skip("https://bugs.freebsd.org/220841");
|
atf_tc_skip("https://bugs.freebsd.org/220841");
|
||||||
|
|
||||||
ATF_REQUIRE((fpid = fork()) != -1);
|
ATF_REQUIRE((fpid = fork()) != -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user