From 42efdfd4cbfddbe01d249d507b11ebf9b6255184 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@meta.com>
Date: Sun, 19 Apr 2026 07:39:22 -0700
Subject: [PATCH] tests: zgrep-abuse: skip if we cannot create the exploit
 input

* tests/zgrep-abuse: Just test the creation of the exploit
file directly.  Apparently touch'ing a "|"-afflicted file name
works fine, but redirection fails.
---
 tests/zgrep-abuse | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/zgrep-abuse b/tests/zgrep-abuse
index fa6c373..8b638e0 100755
--- a/tests/zgrep-abuse
+++ b/tests/zgrep-abuse
@@ -20,9 +20,6 @@

 . "${srcdir=.}/init.sh"; path_prepend_ ..

-touch 'a|b' 2>/dev/null && rm -f 'a|b' \
-  || skip_ 'file system lacks support for | in file names'
-
 : > z || framework_failure_
 echo test |gzip > 'z|
 p
@@ -31,7 +28,7 @@ p
 etouch .\x2fhacked2
 d
 #
-#' || framework_failure_
+#' || _skip 'file system lacks support for | in file names'

 fail=0

-- 
2.53.0

