Module Name:    src
Committed By:   rillig
Date:           Tue Jun 11 17:12:36 UTC 2024

Modified Files:
        src/tests/fs/cd9660: t_high_ino_big_file.sh

Log Message:
tests/cd9660: use absolute path for mounting filesystem

On amd64-compat32, the test failed with:
> rump_cd9660: "./pr_48787.image" is a relative path.
> rump_cd9660: using "/tmp/atf-run.dfxJMh/pr_48787.image" instead.
> assertion "PU_GETSFLAG(pu, PU_PUFFSDAEMON)" failed:
>     file "/work/src/lib/libpuffs/puffs.c", line 718, function "puffs_cancel"
> rump_cd9660: puffs_daemon: Invalid argument


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/fs/cd9660/t_high_ino_big_file.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/fs/cd9660/t_high_ino_big_file.sh
diff -u src/tests/fs/cd9660/t_high_ino_big_file.sh:1.6 src/tests/fs/cd9660/t_high_ino_big_file.sh:1.7
--- src/tests/fs/cd9660/t_high_ino_big_file.sh:1.6	Sun Apr 28 14:39:22 2024
+++ src/tests/fs/cd9660/t_high_ino_big_file.sh	Tue Jun 11 17:12:36 2024
@@ -1,4 +1,4 @@
-# $NetBSD: t_high_ino_big_file.sh,v 1.6 2024/04/28 14:39:22 rillig Exp $
+# $NetBSD: t_high_ino_big_file.sh,v 1.7 2024/06/11 17:12:36 rillig Exp $
 #
 # Copyright (c) 2014 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -71,7 +71,7 @@ atf_test_case pr_kern_48787 cleanup
 pr_kern_48787_head() {
 	atf_set "descr" "Verifies 32bit overflow issues from PR kern/48787 are fixed"
 	atf_set "require.user" "root"
-	atf_set "require.progs" "rump_cd9660 bunzip2 stat"
+	atf_set "require.progs" "rump_cd9660 stat"
 	atf_set "timeout" 6000
 }
 
@@ -81,10 +81,10 @@ pr_kern_48787_body() {
 		atf_skip "not enough free disk space, have ${avail} Kbytes, need ~ 4500000 Kbytes"
 	fi
 	$(atf_get_srcdir)/h_hexdump_r < $(atf_get_srcdir)/pr_48787.image.hex > pr_48787.image || atf_fail "h_hexdump_r failed"
-	mntpnt=$(pwd)/mnt
+	mntpnt=$PWD/mnt
 	mkdir ${mntpnt}
 
-	rump_cd9660 -o norrip ./pr_48787.image ${mntpnt}
+	rump_cd9660 -o norrip "$PWD"/pr_48787.image ${mntpnt}
 	if [ ! -r ${mntpnt}/small_file ]; then
 		atf_fail "${mntpnt}/small_file does not exist"
 	fi
@@ -93,7 +93,7 @@ pr_kern_48787_body() {
 	fi
 	umount ${mntpnt}
 
-	rump_cd9660 ./pr_48787.image ${mntpnt}
+	rump_cd9660 "$PWD/pr_48787.image" ${mntpnt}
 	if [ ! -r ${mntpnt}/small_file ]; then
 		atf_fail "${mntpnt}/small_file does not exist"
 	fi

Reply via email to