* tests/dd/fail-ftruncate-fstat.sh: Ensure strace intercepts
the call, which was not the case on strace 6.19 on Alpine 3.24.1.
---
 tests/dd/fail-ftruncate-fstat.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/dd/fail-ftruncate-fstat.sh b/tests/dd/fail-ftruncate-fstat.sh
index 4d3e9b809..70936f712 100755
--- a/tests/dd/fail-ftruncate-fstat.sh
+++ b/tests/dd/fail-ftruncate-fstat.sh
@@ -35,8 +35,8 @@ strace -o strace.out \
 ret=$?
 
 # This also implicitly checks for strace invocation issues
-grep -oE '^(fstat|ftruncate)' strace.out ||
-  skip_ 'ftruncate or fstat are not detected'
+grep -E '^(fstat|ftruncate).*INJECTED' strace.out ||
+  skip_ 'ftruncate or fstat are not intercepted'
 
 # After ftruncate fails, we use fstat to get the file type.
 echo "dd: cannot fstat 'out': $EPERM" > exp
-- 
2.55.0


Reply via email to