From e254e53d8c8769765abdb8d5e1f1ce8b65d1b313 Mon Sep 17 00:00:00 2001
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Thu, 9 Jun 2011 16:10:07 +0000
Subject: [PATCH] Update ptrace_setoptions test

The test have to be adjusted after commit v4.6-5-g3454e4b.

* ptrace_setoptions: Update grep pattern, rename to
ptrace_setoptions_followfork.
* tests/Makefile.am (TESTS): Rename ptrace_setoptions to
ptrace_setoptions_followfork.
---
 tests/Makefile.am                                         | 2 +-
 tests/{ptrace_setoptions => ptrace_setoptions_followfork} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename tests/{ptrace_setoptions => ptrace_setoptions_followfork} (84%)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 93636ca8..53e76626 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,6 +1,6 @@
 # Automake input for strace tests.
 
-TESTS = ptrace_setoptions strace-f
+TESTS = ptrace_setoptions_followfork strace-f
 
 EXTRA_DIST = init.sh $(TESTS)
 
diff --git a/tests/ptrace_setoptions b/tests/ptrace_setoptions_followfork
similarity index 84%
rename from tests/ptrace_setoptions
rename to tests/ptrace_setoptions_followfork
index 4bfe38df..987a2dbb 100755
--- a/tests/ptrace_setoptions
+++ b/tests/ptrace_setoptions_followfork
@@ -14,5 +14,5 @@ check_prog timeout
 
 timeout -s 9 9 \
 $STRACE -df -enone / 2>&1 |
-	grep -F -x 'ptrace_setoptions = 0xe' > /dev/null ||
+	grep -F -x 'ptrace_setoptions_followfork = 0xe' > /dev/null ||
 		fail_ 'strace failed to recognize proper kernel PTRACE_O_TRACECLONE support'
-- 
2.40.0