summaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
authorKarel Zak2007-08-14 12:05:29 +0200
committerKarel Zak2007-08-14 12:05:29 +0200
commitcd5e23c56a5dc5d20a0c149d2910ac0c0a523097 (patch)
treebbecbecfb4dd1e4b277775e451699d1e49ff2a33 /tests/helpers
parentchsh: don't use empty shell field in /etc/passwd (diff)
downloadkernel-qcow2-util-linux-cd5e23c56a5dc5d20a0c149d2910ac0c0a523097.tar.gz
kernel-qcow2-util-linux-cd5e23c56a5dc5d20a0c149d2910ac0c0a523097.tar.xz
kernel-qcow2-util-linux-cd5e23c56a5dc5d20a0c149d2910ac0c0a523097.zip
tests: fix ULONG_MAX usage on 32bit machines
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/mnt_test_sysinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/helpers/mnt_test_sysinfo.c b/tests/helpers/mnt_test_sysinfo.c
index b817d04ee..0e09a35fd 100644
--- a/tests/helpers/mnt_test_sysinfo.c
+++ b/tests/helpers/mnt_test_sysinfo.c
@@ -71,7 +71,11 @@ hlp_ulong_max(void)
int
hlp_ulong_max32(void)
{
+#if __WORDSIZE == 64
printf("%lu\n", ULONG_MAX >> 32);
+#else
+ printf("%lu\n", ULONG_MAX);
+#endif
return 0;
}