Page MenuHomeFreeBSD

D28889.diff
No OneTemporary

D28889.diff

diff --git a/tests/sys/kern/ptrace_test.c b/tests/sys/kern/ptrace_test.c
--- a/tests/sys/kern/ptrace_test.c
+++ b/tests/sys/kern/ptrace_test.c
@@ -3947,7 +3947,8 @@
if (fpid == 0) {
trace_me();
kill(getpid(), 0);
- close(3);
+ /* Close a fd that should not exist. */
+ close(12345);
exit(1);
}
@@ -4049,7 +4050,7 @@
ATF_REQUIRE(ptrace(PT_GET_SC_ARGS, wpid, (caddr_t)args,
sizeof(args)) != -1);
- REQUIRE_EQ(args[0], 3);
+ REQUIRE_EQ(args[0], 12345);
REQUIRE_EQ(ptrace(PT_CONTINUE, fpid, (caddr_t)1, 0), 0);

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 31, 9:22 AM (13 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16359653
Default Alt Text
D28889.diff (542 B)

Event Timeline