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 <[email protected]>
---
 testcases/kernel/mem/mbind/mbind01.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

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
------------------------------------------------------------------------------
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
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to