Module Name:    src
Committed By:   gson
Date:           Sat Jul 24 15:56:06 UTC 2021

Modified Files:
        src/tests/usr.sbin/execsnoop: t_execsnoop.sh
        src/tests/usr.sbin/opensnoop: t_opensnoop.sh

Log Message:
Create temporary files in . rather than /tmp so that they get cleaned up
automatically by atf.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.sbin/execsnoop/t_execsnoop.sh
cvs rdiff -u -r1.4 -r1.5 src/tests/usr.sbin/opensnoop/t_opensnoop.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/usr.sbin/execsnoop/t_execsnoop.sh
diff -u src/tests/usr.sbin/execsnoop/t_execsnoop.sh:1.4 src/tests/usr.sbin/execsnoop/t_execsnoop.sh:1.5
--- src/tests/usr.sbin/execsnoop/t_execsnoop.sh:1.4	Sun Jul 18 06:24:58 2021
+++ src/tests/usr.sbin/execsnoop/t_execsnoop.sh	Sat Jul 24 15:56:05 2021
@@ -1,4 +1,4 @@
-# $NetBSD: t_execsnoop.sh,v 1.4 2021/07/18 06:24:58 dholland Exp $
+# $NetBSD: t_execsnoop.sh,v 1.5 2021/07/24 15:56:05 gson Exp $
 #
 # Copyright (c) 2020 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -27,7 +27,7 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 #
-tmp="/tmp/execsnoop"
+tmp="execsnoop.out"
 
 atf_test_case basic cleanup
 basic_head() {
@@ -60,10 +60,6 @@ basic_body() {
 }
 
 basic_cleanup() {
-
-	if [ -f $tmp ]; then
-		rm $tmp
-	fi
 }
 
 atf_init_test_cases() {

Index: src/tests/usr.sbin/opensnoop/t_opensnoop.sh
diff -u src/tests/usr.sbin/opensnoop/t_opensnoop.sh:1.4 src/tests/usr.sbin/opensnoop/t_opensnoop.sh:1.5
--- src/tests/usr.sbin/opensnoop/t_opensnoop.sh:1.4	Sat Jul 11 09:55:26 2020
+++ src/tests/usr.sbin/opensnoop/t_opensnoop.sh	Sat Jul 24 15:56:05 2021
@@ -1,4 +1,4 @@
-# $NetBSD: t_opensnoop.sh,v 1.4 2020/07/11 09:55:26 jruoho Exp $
+# $NetBSD: t_opensnoop.sh,v 1.5 2021/07/24 15:56:05 gson Exp $
 #
 # Copyright (c) 2020 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -27,7 +27,7 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 #
-tmp="/tmp/opensnoop"
+tmp="opensnoop.out"
 
 atf_test_case basic cleanup
 basic_head() {
@@ -62,10 +62,6 @@ basic_body() {
 }
 
 basic_cleanup() {
-
-	if [ -f $tmp ]; then
-		rm $tmp
-	fi
 }
 
 atf_init_test_cases() {

Reply via email to