Skip to content

Commit ac87d2d

Browse files
committed
libunwind: Enable more tests to run on FreeBSD
While at it, replace "echo -ne" with "printf" for more compatibility.
1 parent ae2b303 commit ac87d2d

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

libunwind/test/bad_unwind_info.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +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)-.+linux.*}}
13+
// REQUIRES: target={{(aarch64|s390x|x86_64)-.+(linux|freebsd).*}}
1414

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

libunwind/test/eh_frame_fde_pc_range.pass.cpp

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

1414
// clang-format off
1515

16-
// REQUIRES: target={{x86_64-.+-linux-gnu}}
16+
// REQUIRES: target={{x86_64-.+-(linux-gnu|freebsd.*)}}
1717
// REQUIRES: objcopy-available
1818

1919
// TODO: Figure out why this fails with Memory Sanitizer.
2020
// XFAIL: msan
2121

2222
// RUN: %{build}
2323
// RUN: %{objcopy} --dump-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe
24-
// RUN: echo -ne '\xFF' | dd of=%t_ehf_hdr.bin bs=1 seek=2 count=2 conv=notrunc status=none
24+
// RUN: printf '\377' | dd of=%t_ehf_hdr.bin bs=1 seek=2 count=2 conv=notrunc status=none
2525
// RUN: %{objcopy} --update-section .eh_frame_hdr=%t_ehf_hdr.bin %t.exe
2626
// RUN: %{exec} %t.exe
2727

libunwind/test/forceunwind.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: linux
10+
// REQUIRES: linux || freebsd
1111

1212
// TODO: Figure out why this fails with Memory Sanitizer.
1313
// XFAIL: msan

libunwind/test/remember_state_leak.pass.sh.s

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

9-
# REQUIRES: target={{x86_64-.+-linux-gnu}}
9+
# REQUIRES: target={{x86_64-.+-(linux-gnu|freebsd.*)}}
1010

1111
# Inline assembly isn't supported by Memory Sanitizer
1212
# UNSUPPORTED: msan

libunwind/test/signal_unwind.pass.cpp

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

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

1313
// TODO: Figure out why this fails with Memory Sanitizer.
1414
// XFAIL: msan

libunwind/test/unwind_leaffunction.pass.cpp

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

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

1313
// TODO: Figure out why this fails with Memory Sanitizer.
1414
// XFAIL: msan

0 commit comments

Comments
 (0)