[LTP] [PATCH v2 1/2] [mm] mbind01: not working on 32bit systems

Caspar Zhang
2011-04-09T03:24:25Z

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

when executing mem/mbind01 testcase under 32bit systems, it returns
ENOSYS error, indicating that the test is not suitable for running on
32bit systems. This patch checks wordsize before executing the actual
case.

Signed-off-by: Caspar Zhang <czhang@redhat.com>
---
testcases/kernel/mem/mbind/mbind01.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-mm-mbind01-not-working-on-32bit-systems.patch --]
[-- Type: text/x-patch; name="0001-mm-mbind01-not-working-on-32bit-systems.patch", Size: 704 bytes --]

diff --git a/testcases/kernel/mem/mbind/mbind01.c b/testcases/kernel/mem/mbind/mbind01.c
index 80a56c4..497df24 100644
--- a/testcases/kernel/mem/mbind/mbind01.c
+++ b/testcases/kernel/mem/mbind/mbind01.c
@@ -67,6 +67,11 @@ int main(int argc, char** argv)
msg = parse_opts(argc, argv, options, usage);
if (msg != NULL)
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
+
+#if __WORDSIZE == 32
+ tst_brkm(TCONF, NULL, "test is not designed for 32-bit system.");
+#endif
+
if (opt_node) {
node = atoi(optarg);
if (node < 1)
@@ -138,4 +143,4 @@ int main(void) {
tst_resm(TCONF, "no NUMA development packages installed.");
tst_exit();
}
-#endif
\ No newline at end of file
+#endif

[-- Attachment #3: Type: text/plain, Size: 250 bytes --]

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]