svn commit: r288962 - head/tests/sys/kern
John Baldwin
jhb at FreeBSD.org
Tue Oct 6 22:59:02 UTC 2015
Author: jhb
Date: Tue Oct 6 22:59:00 2015
New Revision: 288962
URL: https://svnweb.freebsd.org/changeset/base/288962
Log:
Tweak: use 'mainlwp' instead of 'mainpid' since this is a thread (LWP)
identifier, not a pid.
Modified:
head/tests/sys/kern/ptrace_test.c
Modified: head/tests/sys/kern/ptrace_test.c
==============================================================================
--- head/tests/sys/kern/ptrace_test.c Tue Oct 6 22:54:04 2015 (r288961)
+++ head/tests/sys/kern/ptrace_test.c Tue Oct 6 22:59:00 2015 (r288962)
@@ -1103,7 +1103,7 @@ ATF_TC_BODY(ptrace__new_child_pl_syscall
{
struct ptrace_lwpinfo pl;
pid_t fpid, wpid;
- lwpid_t mainpid;
+ lwpid_t mainlwp;
int status;
ATF_REQUIRE((fpid = fork()) != -1);
@@ -1126,7 +1126,7 @@ ATF_TC_BODY(ptrace__new_child_pl_syscall
ATF_REQUIRE(ptrace(PT_LWPINFO, wpid, (caddr_t)&pl,
sizeof(pl)) != -1);
- mainpid = pl.pl_lwpid;
+ mainlwp = pl.pl_lwpid;
/*
* Continue the child ignoring the SIGSTOP and tracing all
@@ -1151,7 +1151,7 @@ ATF_TC_BODY(ptrace__new_child_pl_syscall
sizeof(pl)) != -1);
ATF_REQUIRE((pl.pl_flags & PL_FLAG_SCX) != 0);
ATF_REQUIRE(pl.pl_syscall_code != 0);
- if (pl.pl_lwpid != mainpid)
+ if (pl.pl_lwpid != mainlwp)
/* New thread seen. */
break;
More information about the svn-src-head
mailing list