get_mempolicy01 and mbind01 testcases are designed for NUMA api v1 which
means they could not be run on systems with NUMA api v2. If so, the
tests should give a TCONF message rather than TBROK.

Signed-off-by: Caspar Zhang <[email protected]>
---
 .../syscalls/get_mempolicy/get_mempolicy01.c       |    2 +-
 testcases/kernel/syscalls/mbind/mbind01.c          |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c b/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c
index b36ede3..faebd8b 100644
--- a/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c
+++ b/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c
@@ -377,7 +377,7 @@ int main(int argc, char **argv) {
 }
 #else
 int main(void) {
-	tst_brkm(TBROK, NULL, "XXX: test is broken on libnuma v2 (read numa_helpers.h for more details).");
+	tst_brkm(TCONF, NULL, "XXX: test is broken on libnuma v2 (read numa_helpers.h for more details).");
 	tst_exit();
 }
 #endif
diff --git a/testcases/kernel/syscalls/mbind/mbind01.c b/testcases/kernel/syscalls/mbind/mbind01.c
index 5f9a198..297f074 100644
--- a/testcases/kernel/syscalls/mbind/mbind01.c
+++ b/testcases/kernel/syscalls/mbind/mbind01.c
@@ -405,7 +405,7 @@ int main(int argc, char **argv) {
 }
 #else /* libnuma v2 */
 int main(void) {
-	tst_resm(TBROK, "XXX: test is broken on libnuma v2 (read numa_helpers.h for more details).");
+	tst_resm(TCONF, "XXX: test is broken on libnuma v2 (read numa_helpers.h for more details).");
 	tst_exit();
 }
 #endif
@@ -414,4 +414,4 @@ int main(void) {
 	tst_resm(TCONF, "System doesn't have required numa support");
 	tst_exit();
 }
-#endif
\ No newline at end of file
+#endif
------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to