public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/2] [mm] mbind01: not working on 32bit systems
@ 2011-04-09  3:24 Caspar Zhang
  2011-04-09  3:24 ` [LTP] [PATCH v2 2/2] [mm] mbind01: move to syscalls directory Caspar Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Caspar Zhang @ 2011-04-09  3:24 UTC (permalink / raw)
  To: LTP List

[-- 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 --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-04-15 15:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-09  3:24 [LTP] [PATCH v2 1/2] [mm] mbind01: not working on 32bit systems Caspar Zhang
2011-04-09  3:24 ` [LTP] [PATCH v2 2/2] [mm] mbind01: move to syscalls directory Caspar Zhang
2011-04-09  6:18   ` Garrett Cooper
2011-04-10  5:19     ` Caspar Zhang
2011-04-09  5:38 ` [LTP] [PATCH v2 1/2] [mm] mbind01: not working on 32bit systems Garrett Cooper
2011-04-10  4:31   ` Caspar Zhang
2011-04-10  9:19     ` Garrett Cooper
2011-04-10  9:27       ` Caspar Zhang
2011-04-10  9:43         ` Garrett Cooper
2011-04-10 13:00 ` [LTP] [PATCH v3] [mm] mbind01: move to syscalls directory Caspar Zhang
2011-04-10 13:00 ` [LTP] [PATCH v3] [mm] mbind01: not working on some systems Caspar Zhang
2011-04-12  6:46   ` Garrett Cooper
2011-04-12  7:19     ` Caspar Zhang
2011-04-15 15:32       ` Caspar Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox