git: 77c3e564b4b6 - main - ptrace tests: Fix a signed/unsigned integer comparison

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 01 Apr 2024 23:13:02 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=77c3e564b4b65443a9d3298e0aec4c1387acd55e

commit 77c3e564b4b65443a9d3298e0aec4c1387acd55e
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-04-01 23:10:36 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-04-01 23:12:50 +0000

    ptrace tests: Fix a signed/unsigned integer comparison
    
    Reported by:    Jenkins
    Fixes:  43b4da44118e ("ptrace tests: Add a test using PROC_REAP_KILL to kill a traced debuggee")
---
 tests/sys/kern/ptrace_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/kern/ptrace_test.c b/tests/sys/kern/ptrace_test.c
index b65c84144ad0..675d90e144ae 100644
--- a/tests/sys/kern/ptrace_test.c
+++ b/tests/sys/kern/ptrace_test.c
@@ -4410,7 +4410,7 @@ ATF_TC_BODY(ptrace__reap_kill_stopped, tc)
 	prk.rk_sig = SIGTERM;
 	error = procctl(P_PID, getpid(), PROC_REAP_KILL, &prk);
 	REQUIRE_EQ(error, 0);
-	REQUIRE_EQ(1, prk.rk_killed);
+	REQUIRE_EQ(1u, prk.rk_killed);
 	REQUIRE_EQ(-1, prk.rk_fpid);
 }