[LTP] [PATCH 2/3] ptrace: Build ptrace06, enable in runtest/syscalls

Petr Vorel pvorel@suse.cz
Tue Nov 28 10:15:23 CET 2023


It was disabled in 91d5f18a5 due failures in RHEL 4 (kernel 2.6.9).
Although test is still in legacy API, it runs well, it should have been
enabled long time ago.

Test was also commented out in runtest/syscalls, enable it again.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 runtest/syscalls                            | 5 ++---
 testcases/kernel/syscalls/ptrace/.gitignore | 1 +
 testcases/kernel/syscalls/ptrace/Makefile   | 6 ++----
 3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/runtest/syscalls b/runtest/syscalls
index b7ceb25d3..06db4604e 100644
--- a/runtest/syscalls
+++ b/runtest/syscalls
@@ -1,4 +1,4 @@
-#DESCRIPTION:Kernel system calls
+ based Kernel)#DESCRIPTION:Kernel system calls
 abort01 abort01
 
 accept01 accept01
@@ -1076,8 +1076,7 @@ ptrace02 ptrace02
 ptrace03 ptrace03
 ptrace04 ptrace04
 ptrace05 ptrace05
-# Broken test; See: testcases/kernel/syscalls/ptrace/Makefile for more details.
-#ptrace06 ptrace06
+ptrace06 ptrace06
 ptrace07 ptrace07
 ptrace08 ptrace08
 ptrace09 ptrace09
diff --git a/testcases/kernel/syscalls/ptrace/.gitignore b/testcases/kernel/syscalls/ptrace/.gitignore
index 01cbc6072..1ee6117e9 100644
--- a/testcases/kernel/syscalls/ptrace/.gitignore
+++ b/testcases/kernel/syscalls/ptrace/.gitignore
@@ -3,6 +3,7 @@
 /ptrace03
 /ptrace04
 /ptrace05
+/ptrace06
 /ptrace07
 /ptrace08
 /ptrace09
diff --git a/testcases/kernel/syscalls/ptrace/Makefile b/testcases/kernel/syscalls/ptrace/Makefile
index 9ee7b8374..b410a54be 100644
--- a/testcases/kernel/syscalls/ptrace/Makefile
+++ b/testcases/kernel/syscalls/ptrace/Makefile
@@ -1,13 +1,11 @@
 # SPDX-License-Identifier: GPL-2.0-or-later
+# Copyright (c) Linux Test Project, 2002-2023
 # Copyright (c) International Business Machines  Corp., 2001
 
 top_srcdir		?= ../../../..
 
 include $(top_srcdir)/include/mk/testcases.mk
 
-# - ptrace06 is a broken test ; it hangs the target consistently, chewing up
-#   CPU. See: `Issue 3 - ptrace06 hung for 7 hours' --
-# http://sourceforge.net/mailarchive/forum.php?thread_name=364299f40910062300s65c43c93w9cccdfe8835c2334%40mail.gmail.com&forum_name=ltp-list
 # - simple_tracer is a utility that Mike Frysinger added that shouldn't be
 #   compiled by default:
 #
@@ -29,6 +27,6 @@ include $(top_srcdir)/include/mk/testcases.mk
 #  make: *** [testcases-all] Error 2
 #
 
-FILTER_OUT_MAKE_TARGETS	:= ptrace06 simple_tracer
+FILTER_OUT_MAKE_TARGETS	:= simple_tracer
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
-- 
2.42.0



More information about the ltp mailing list