Skip to content

Commit b01f739

Browse files
author
Jean-Pierre André
committed
Added missing tests for mknod
1 parent d5fefb8 commit b01f739

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/mknod/11.t

+12-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ dir=`dirname $0`
88

99
case "${os}" in
1010
SunOS)
11-
echo "1..40"
11+
if file ${fstest} | grep -q "ELF 32-bit"
12+
then
13+
echo "1..38"
14+
else
15+
echo "1..40"
16+
fi
1217
;;
1318
*)
1419
echo "1..28"
@@ -50,7 +55,12 @@ for type in c b; do
5055

5156
# mknod returns EINVAL if device's numbers are too big
5257
# for 32-bit solaris !!
53-
expect EINVAL mknod ${n0} ${type} 0755 4096 262144
58+
# This cannot be tested if fstest was compiled for 32-bit,
59+
# as there is no way to insert big values into a 32-bit dev_t
60+
if ! file ${fstest} | grep -q "ELF 32-bit"
61+
then
62+
expect EINVAL mknod ${n0} ${type} 0755 4096 262144
63+
fi
5464
;;
5565
esac
5666

0 commit comments

Comments
 (0)