[libunwind] be60b24 - [libunwind] Mark test as requiring Unix headers (#222679)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 05:59:49 PDT 2026


Author: Victor Campos
Date: 2026-09-11T13:59:44+01:00
New Revision: be60b244d1f9fa798c8922e313679035ad9c2ee5

URL: https://github.com/llvm/llvm-project/commit/be60b244d1f9fa798c8922e313679035ad9c2ee5
DIFF: https://github.com/llvm/llvm-project/commit/be60b244d1f9fa798c8922e313679035ad9c2ee5.diff

LOG: [libunwind] Mark test as requiring Unix headers (#222679)

Test `libunwind/test/dwarf_expression_stack.pass.cpp` requires a POSIX
environment because it uses `signal.h` and associated functions. Because
of this, the test fails in baremetal targets.

This change adjusts the requirements of the test. `has-unix-headers`
does not map exactly to the requirements here, but it seems to be enough
for this case.

Added: 
    

Modified: 
    libunwind/test/dwarf_expression_stack.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libunwind/test/dwarf_expression_stack.pass.cpp b/libunwind/test/dwarf_expression_stack.pass.cpp
index 5a6c84492fb66..28ec1f55c9c7f 100644
--- a/libunwind/test/dwarf_expression_stack.pass.cpp
+++ b/libunwind/test/dwarf_expression_stack.pass.cpp
@@ -9,7 +9,7 @@
 
 // Ensure that evaluateExpression bounds checks its internal operand stack and
 // aborts on malformed DWARF expressions rather than overflowing the stack.
-// REQUIRES: target={{(aarch64|x86_64)-.+}}
+// REQUIRES: target={{(aarch64|x86_64)-.+}} && has-unix-headers
 // UNSUPPORTED: target={{.*-windows.*}}
 // UNSUPPORTED: target={{.*-apple.*}}
 


        


More information about the cfe-commits mailing list