Page MenuHomeFreeBSD

D28888.id84713.diff
No OneTemporary

D28888.id84713.diff

Index: tests/sys/kern/ptrace_test.c
===================================================================
--- tests/sys/kern/ptrace_test.c
+++ tests/sys/kern/ptrace_test.c
@@ -237,9 +237,6 @@
int cpipe[2], status;
char c;
- if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
- atf_tc_skip("https://bugs.freebsd.org/244055");
-
REQUIRE_EQ(pipe(cpipe), 0);
ATF_REQUIRE((child = fork()) != -1);
if (child == 0) {
@@ -287,9 +284,6 @@
int cpipe[2], dpipe[2], status;
char c;
- if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
- atf_tc_skip("https://bugs.freebsd.org/239399");
-
REQUIRE_EQ(pipe(cpipe), 0);
ATF_REQUIRE((child = fork()) != -1);
@@ -493,9 +487,6 @@
int cpipe1[2], cpipe2[2], gcpipe[2], status;
pid_t child, gchild;
- if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
- atf_tc_skip("https://bugs.freebsd.org/244056");
-
REQUIRE_EQ(pipe(cpipe1), 0);
REQUIRE_EQ(pipe(cpipe2), 0);
REQUIRE_EQ(pipe(gcpipe), 0);
@@ -834,9 +825,6 @@
pid_t children[2], fpid, wpid;
int cpipe[2], status;
- if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
- atf_tc_skip("https://bugs.freebsd.org/239397");
-
REQUIRE_EQ(pipe(cpipe), 0);
ATF_REQUIRE((fpid = fork()) != -1);
if (fpid == 0) {
@@ -905,9 +893,6 @@
pid_t children[2], fpid, wpid;
int cpipe[2], status;
- if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
- atf_tc_skip("https://bugs.freebsd.org/239292");
-
REQUIRE_EQ(pipe(cpipe), 0);
ATF_REQUIRE((fpid = fork()) != -1);
if (fpid == 0) {
@@ -971,9 +956,6 @@
pid_t children[2], fpid, wpid;
int cpipe[2], status;
- if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
- atf_tc_skip("https://bugs.freebsd.org/239425");
-
REQUIRE_EQ(pipe(cpipe), 0);
ATF_REQUIRE((fpid = fork()) != -1);
if (fpid == 0) {
@@ -1036,9 +1018,6 @@
int cpipe[2], dpipe[2], status;
char c;
- if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
- atf_tc_skip("https://bugs.freebsd.org/240510");
-
REQUIRE_EQ(pipe(cpipe), 0);
ATF_REQUIRE((child = fork()) != -1);
@@ -2123,9 +2102,6 @@
struct ptrace_lwpinfo pl;
struct sched_param sched_param;
- if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
- atf_tc_skip("https://bugs.freebsd.org/220841");
-
ATF_REQUIRE((fpid = fork()) != -1);
if (fpid == 0) {
trace_me();
@@ -4219,9 +4195,6 @@
pid_t traced, debuger, wpid;
int pd, status;
- if (atf_tc_get_config_var_as_bool_wd(tc, "ci", false))
- atf_tc_skip("https://bugs.freebsd.org/243605");
-
traced = pdfork(&pd, 0);
ATF_REQUIRE(traced >= 0);
if (traced == 0) {
@@ -4230,6 +4203,8 @@
}
ATF_REQUIRE(pd >= 0);
+ /* Wait until the child process has stopped before fork()ing again. */
+ REQUIRE_EQ(traced, waitpid(traced, &status, WSTOPPED));
debuger = fork();
ATF_REQUIRE(debuger >= 0);
if (debuger == 0) {

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 17, 4:50 AM (8 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15833722
Default Alt Text
D28888.id84713.diff (2 KB)

Event Timeline