Index: tests/sys/kern/ptrace_test.c =================================================================== --- tests/sys/kern/ptrace_test.c +++ tests/sys/kern/ptrace_test.c @@ -3965,7 +3965,7 @@ if (fpid == 0) { trace_me(); kill(getpid(), 0); - close(3); + close(12345); /* Any fd number that should not exist */ exit(1); } @@ -4067,7 +4067,7 @@ ATF_REQUIRE(ptrace(PT_GET_SC_ARGS, wpid, (caddr_t)args, sizeof(args)) != -1); - REQUIRE_EQ_INT(args[0], 3); + REQUIRE_EQ_INT(args[0], 12345); REQUIRE_EQ_INT(ptrace(PT_CONTINUE, fpid, (caddr_t)1, 0), 0);