]> granicus.if.org Git - strace/blobdiff - tests/detach-running.test
tests: extend TEST_NETLINK_OBJECT macro
[strace] / tests / detach-running.test
index 006efb8591cf88c42ac6b3fd9322858457f2e234..ba5ffbf4c79ed520c5f84440d1e1865a66ec6e33 100755 (executable)
@@ -3,6 +3,7 @@
 # Ensure that strace can detach from running processes.
 #
 # Copyright (c) 2013-2015 Dmitry V. Levin <ldv@altlinux.org>
+# Copyright (c) 2014-2017 The strace developers.
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -36,7 +37,7 @@ check_prog sleep
 
 set -e
 
-./set_ptracer_any sh -c "echo > $LOG; while :; do :; done" > /dev/null &
+../set_ptracer_any sh -c "echo > $LOG; while :; do :; done" > /dev/null &
 
 while ! [ -s "$LOG" ]; do
        kill -0 $! 2> /dev/null ||
@@ -54,7 +55,6 @@ cleanup()
        return 0
 }
 
-rm -f "$LOG"
 $STRACE -p $tracee_pid 2> "$LOG" &
 
 while ! grep -F "Process $tracee_pid attached" "$LOG" > /dev/null; do