aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-07-01 15:00:06 -0500
committerRob Landley <rob@landley.net>2015-07-01 15:00:06 -0500
commit8a2c0876754baa2085bce94d6778b5d2f4aee937 (patch)
tree5efcacf54d2508aa341759844d7940269ce1ed44 /tests
parent8c0d2d2bc557ced86650ab48ab92cf58840efce8 (diff)
downloadtoybox-8a2c0876754baa2085bce94d6778b5d2f4aee937.tar.gz
Fix segfault with "mount -o ro,remount".
Or any call to comma_scan where 'opt' appears as the last item in 'optlist'.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mount.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mount.test b/tests/mount.test
index 1fdc00f7..d64bfc62 100755
--- a/tests/mount.test
+++ b/tests/mount.test
@@ -82,6 +82,10 @@ testing "mount -o ro $tmp_b_fs /mnt" \
"mount -o ro $tmp_b_fs /mnt >/dev/null 2>&1 &&
mkdir /mnt/testDir 2>/dev/null || sleep 1 && umount /mnt" "" "" ""
reCreateTmpFs
+testing "mount -o ro,remount $tmp_b_fs /mnt" \
+ "mount -o ro $tmp_b_fs /mnt >/dev/null 2>&1 &&
+ mkdir /mnt/testDir 2>/dev/null || sleep 1 && umount /mnt" "" "" ""
+reCreateTmpFs
umount testDir1
rm -f $tmp_b_fs