proc: skip proc-empty-vm on anything but amd64 and i386
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 30 Jun 2023 18:34:34 +0000 (21:34 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:18:50 +0000 (10:18 -0700)
This test is arch specific, requires "munmap everything" primitive.

Link: https://lkml.kernel.org/r/20230630183434.17434-2-adobriyan@gmail.com
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Björn Töpel <bjorn@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/proc/proc-empty-vm.c

index 3aea36c..dfbcb3c 100644 (file)
@@ -1,3 +1,4 @@
+#if defined __amd64__ || defined __i386__
 /*
  * Copyright (c) 2022 Alexey Dobriyan <adobriyan@gmail.com>
  *
@@ -402,3 +403,9 @@ int main(void)
 
        return rv;
 }
+#else
+int main(void)
+{
+       return 4;
+}
+#endif