Skip to content

Commit 2222ab0

Browse files
authored
Revert "libunwind: Remove OS requirements from tests to make them run on more…"
This reverts commit 33bcde0.
1 parent 045331e commit 2222ab0

10 files changed

+11
-21
lines changed

libunwind/test/aarch64_vg_unwind.pass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: target={{aarch64-.+}}
10-
// UNSUPPORTED: target={{.*-windows.*}}
9+
// REQUIRES: linux && target={{aarch64-.+}}
1110

1211
#include <libunwind.h>
1312
#include <stdlib.h>

libunwind/test/aarch64_za_unwind.pass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: target={{aarch64-.+}}
10-
// UNSUPPORTED: target={{.*-windows.*}}
9+
// REQUIRES: linux && target={{aarch64-.+}}
1110

1211
#include <libunwind.h>
1312
#include <stdint.h>

libunwind/test/bad_unwind_info.pass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
// Ensure that libunwind doesn't crash on invalid info; the Linux aarch64
1111
// sigreturn frame check would previously attempt to access invalid memory in
1212
// this scenario.
13-
// REQUIRES: target={{(aarch64|s390x|x86_64)-.+}}
14-
// UNSUPPORTED: target={{.*-windows.*}}
13+
// REQUIRES: target={{(aarch64|s390x|x86_64)-.+linux.*}}
1514

1615
// GCC doesn't support __attribute__((naked)) on AArch64.
1716
// UNSUPPORTED: gcc

libunwind/test/eh_frame_fde_pc_range.pass.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@
1313

1414
// clang-format off
1515

16-
// REQUIRES: target={{x86_64-.+}}
16+
// REQUIRES: target={{x86_64-.+-linux-gnu}}
1717
// REQUIRES: objcopy-available
18-
// UNSUPPORTED: target={{.*-windows.*}}
1918

2019
// TODO: Figure out why this fails with Memory Sanitizer.
2120
// XFAIL: msan
2221

2322
// RUN: %{build}
2423
// RUN: %{objcopy} --dump-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe
25-
// RUN: printf '\377' | dd of=%t_ehf_hdr.bin bs=1 seek=2 count=2 conv=notrunc status=none
24+
// RUN: echo -ne '\xFF' | dd of=%t_ehf_hdr.bin bs=1 seek=2 count=2 conv=notrunc status=none
2625
// RUN: %{objcopy} --update-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe
2726
// RUN: %{exec} %t.exe
2827

libunwind/test/floatregister.pass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
// REQUIRES: target={{aarch64-.+}}
11-
// UNSUPPORTED: target={{.*-windows.*}}
10+
// REQUIRES: linux && target={{aarch64-.+}}
1211

1312
// Basic test for float registers number are accepted.
1413

libunwind/test/forceunwind.pass.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
// UNSUPPORTED: target={{.*-apple.*}}
11-
// UNSUPPORTED: target={{.*-aix.*}}
12-
// UNSUPPORTED: target={{.*-windows.*}}
10+
// REQUIRES: linux
1311

1412
// TODO: Figure out why this fails with Memory Sanitizer.
1513
// XFAIL: msan

libunwind/test/remember_state_leak.pass.sh.s

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
#
77
#===------------------------------------------------------------------------===#
88

9-
# REQUIRES: target={{x86_64-.+}}
10-
# UNSUPPORTED: target={{.*-windows.*}}
9+
# REQUIRES: target={{x86_64-.+-linux-gnu}}
1110

1211
# Inline assembly isn't supported by Memory Sanitizer
1312
# UNSUPPORTED: msan

libunwind/test/signal_unwind.pass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
//===----------------------------------------------------------------------===//
99

1010
// Ensure that the unwinder can cope with the signal handler.
11-
// REQUIRES: target={{(aarch64|loongarch64|riscv64|s390x|x86_64)-.+}}
12-
// UNSUPPORTED: target={{.*-windows.*}}
11+
// REQUIRES: target={{(aarch64|loongarch64|riscv64|s390x|x86_64)-.+linux.*}}
1312

1413
// TODO: Figure out why this fails with Memory Sanitizer.
1514
// XFAIL: msan

libunwind/test/unwind_leaffunction.pass.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
//===----------------------------------------------------------------------===//
99

1010
// Ensure that leaf function can be unwund.
11-
// REQUIRES: target={{(aarch64|loongarch64|riscv64|s390x|x86_64)-.+}}
12-
// UNSUPPORTED: target={{.*-windows.*}}
11+
// REQUIRES: target={{(aarch64|loongarch64|riscv64|s390x|x86_64)-.+linux.*}}
1312

1413
// TODO: Figure out why this fails with Memory Sanitizer.
1514
// XFAIL: msan

libunwind/test/unwind_scalable_vectors.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
// REQUIRES: target={{riscv64-.+}}
10+
// REQUIRES: linux && target={{riscv64-.+}}
1111

1212
#undef NDEBUG
1313
#include <assert.h>

0 commit comments

Comments
 (0)