]> arthur.barton.de Git - bup.git/commitdiff
test-xdev: use different filesystem images for each mount point
authorRob Browning <rlb@defaultvalue.org>
Sat, 11 Aug 2018 20:30:18 +0000 (15:30 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 11 Aug 2018 20:30:48 +0000 (15:30 -0500)
Previously we were mounting the same image twice, which was
unintended, and may produce the same device number.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-xdev.sh

index 66dc81e611579d37ad2fccd12ec169c03e46b119..e9817062fdd5b2eda6a1558b151194a2dba81fe8 100755 (executable)
@@ -41,7 +41,7 @@ WVPASS mkfs -F testfs-1.img # Don't care what type (though must have symlinks)
 WVPASS mkfs -F testfs-2.img # Don't care what type (though must have symlinks)
 WVPASS mkdir -p src/mnt-1/hidden-1 src/mnt-2/hidden-2
 WVPASS mount -o loop testfs-1.img src/mnt-1
-WVPASS mount -o loop testfs-1.img src/mnt-2
+WVPASS mount -o loop testfs-2.img src/mnt-2
 
 WVPASS touch src/1