[libc] Disable the loader init_fini_array_test for non-x86_64 targets.
authorSiva Chandra <sivachandra@google.com>
Wed, 3 Aug 2022 19:04:21 +0000 (12:04 -0700)
committerSiva Chandra <sivachandra@google.com>
Wed, 3 Aug 2022 19:06:13 +0000 (12:06 -0700)
Loader for aarch64 will be extended in a future pass and this test will
be enabled back again.

libc/test/integration/loader/linux/CMakeLists.txt

index 5138f7a..1cf6503 100644 (file)
@@ -52,11 +52,13 @@ add_integration_test(
     libc.src.sys.mman.mmap
 )
 
-add_integration_test(
-  init_fini_array_test
-  SUITE libc-loader-tests
-  LOADER
-    libc.loader.linux.crt1
-  SRCS
-    init_fini_array_test.cpp
-)
+if(${LIBC_TARGET_ARCHITECTURE} STREQUAL "x86_64")
+  add_integration_test(
+    init_fini_array_test
+    SUITE libc-loader-tests
+    LOADER
+      libc.loader.linux.crt1
+    SRCS
+      init_fini_array_test.cpp
+  )
+endif()