|
From: <sv...@va...> - 2012-10-04 23:53:11
|
petarj 2012-10-05 00:53:03 +0100 (Fri, 05 Oct 2012)
New Revision: 13022
Log:
Change uname based arch-check to match machine hardware name in sgcheck.
Some hardware platforms will return "unknown" for 'uname -i', so it is more
accurate and common to run 'uname -m' which returns machine hardware name.
This way, some platforms that do not support sgcheck will avoid running tests
for it.
Modified files:
trunk/exp-sgcheck/tests/is_arch_supported
Modified: trunk/exp-sgcheck/tests/is_arch_supported (+3 -3)
===================================================================
--- trunk/exp-sgcheck/tests/is_arch_supported 2012-10-04 22:38:27 +01:00 (rev 13021)
+++ trunk/exp-sgcheck/tests/is_arch_supported 2012-10-05 00:53:03 -23:00 (rev 13022)
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Not all architectures are supported by exp-ptr. Currently, PowerPC, s390x
-# and ARM are not supported and will fail these tests as follows:
+# Not all architectures are supported by exp-ptr. Currently, PowerPC, s390x,
+# MIPS and ARM are not supported and will fail these tests as follows:
# WARNING: exp-ptrcheck on <blah> platforms: stack and global array
# WARNING: checking is not currently supported. Only heap checking is
# WARNING: supported.
@@ -9,7 +9,7 @@
# So we use this script to prevent these tests from running on unsupported
# architectures.
-case `uname -i` in
+case `uname -m` in
ppc*|arm*|s390x|mips*) exit 1;;
*) exit 0;;
esac
|