summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmmv <jmmv@NetBSD.org>2006-03-26 16:19:04 +0000
committerjmmv <jmmv@NetBSD.org>2006-03-26 16:19:04 +0000
commit0eee8b4edefdf34aee69c0754fdaf5d1fc0077bd (patch)
tree05365765dfd0cd2ce6ac95a624688242d50bcddd
parent205ee851c876741cd6b1294b7a5219b8c5720999 (diff)
Decrement the size value passed to test-mount by one unit so that it fits
in a 64-bit signed integer (thus ensuring that mount_tmpfs handles these correctly). Also check that the previous (big) value fails. This makes this test behave correctly on all platforms (not only 64-bit ones) after the fix commited to mount_tmpfs.
-rwxr-xr-xregress/sys/fs/tmpfs/t_mount8
1 files changed, 5 insertions, 3 deletions
diff --git a/regress/sys/fs/tmpfs/t_mount b/regress/sys/fs/tmpfs/t_mount
index eb734b207ea..0121709ba52 100755
--- a/regress/sys/fs/tmpfs/t_mount
+++ b/regress/sys/fs/tmpfs/t_mount
@@ -1,8 +1,8 @@
#!/bin/sh
#
-# $NetBSD: t_mount,v 1.4 2005/09/26 09:50:53 jmmv Exp $
+# $NetBSD: t_mount,v 1.5 2006/03/26 16:19:04 jmmv Exp $
#
-# Copyright (c) 2005 The NetBSD Foundation, Inc.
+# Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
@@ -71,9 +71,11 @@ test_run() {
test_unmount
test_name "Extremely large values are correctly handled"
- test_mount -o -s9223372036854775808
+ test_mount -o -s9223372036854775807
test_unmount
mkdir -p ${Work_Dir}
+ mount -t tmpfs -o -s9223372036854775808 tmpfs ${Work_Dir} \
+ 2>/dev/null && die
mount -t tmpfs -o -s9223372036854775808g tmpfs ${Work_Dir} \
2>/dev/null && die
rmdir ${Work_Dir}