[compiler-rt] [ubsan][test] Skip Misc/Posix/static-link.cpp on Solaris (PR #175462)

Rainer Orth via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 11 13:23:48 PST 2026


https://github.com/rorth created https://github.com/llvm/llvm-project/pull/175462

The `UBSan-Standalone-x86_64 :: TestCases/Misc/Posix/static-link.cpp` test currently `FAIL`s on Solaris/x86_64 with
```
ld: fatal: option '-z record' is incompatible with building a static executable
```
One cannot create static executables on Solaris since no `libc.a` is delivered, so this patch skips the test.

Tested on `x86_64-pc-solaris2.11`.

>From b27b312893394f3cbbcbee027861e97e9803967b Mon Sep 17 00:00:00 2001
From: Rainer Orth <ro at gcc.gnu.org>
Date: Sun, 11 Jan 2026 22:21:23 +0100
Subject: [PATCH] [ubsan][test] Skip Misc/Posix/static-link.cpp on Solaris

The `UBSan-Standalone-x86_64 :: TestCases/Misc/Posix/static-link.cpp` test
currently `FAIL`s on Solaris/x86_64 with
```
ld: fatal: option '-z record' is incompatible with building a static executable
```
One cannot create static executables on Solaris since no `libc.a` is
delivered, so this patch skips the test.

Tested on `x86_64-pc-solaris2.11`.
---
 compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp b/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp
index 081eec049e3fc..daa76b7322669 100644
--- a/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp
+++ b/compiler-rt/test/ubsan/TestCases/Misc/Posix/static-link.cpp
@@ -6,7 +6,7 @@
 // UNSUPPORTED: i386-target-arch, internal_symbolizer
 
 // Does not link.
-// UNSUPPORTED: darwin
+// UNSUPPORTED: darwin,target={{.*solaris.*}}
 
 #include <signal.h>
 #include <stdio.h>



More information about the llvm-commits mailing list