Skip to content

Commit 9a220dc

Browse files
committedSep 13, 2023
[libc++abi][test][VE] Add UNSUPPORTED to pass tests on VE
Add UNSUPPORTED to pass tests on VE. VE uses SjLj libunwind, so _Unwind_Backtrace and _Unwind_ForcedUnwind are not implemented. Reviewed By: MaskRay, #libc_abi, ldionne Differential Revision: https://reviews.llvm.org/D159446
1 parent e0c54a2 commit 9a220dc

4 files changed

+12
-0
lines changed
 

‎libcxxabi/test/backtrace_test.pass.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
// UNSUPPORTED: no-exceptions
1010

11+
// VE only supports SjLj and doesn't provide _Unwind_Backtrace.
12+
// UNSUPPORTED: target={{ve-.*}}
13+
1114
#include <assert.h>
1215
#include <stddef.h>
1316
#include <unwind.h>

‎libcxxabi/test/forced_unwind1.pass.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
// UNSUPPORTED: no-exceptions, c++03
1313

14+
// VE only supports SjLj and doesn't provide _Unwind_ForcedUnwind.
15+
// UNSUPPORTED: target={{ve-.*}}
16+
1417
// These tests fail on previously released dylibs, investigation needed.
1518
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12|13|14|15}}
1619
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx{{11.0|12.0}}

‎libcxxabi/test/forced_unwind2.pass.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
// UNSUPPORTED: no-exceptions, c++03
1212

13+
// VE only supports SjLj and doesn't provide _Unwind_ForcedUnwind.
14+
// UNSUPPORTED: target={{ve-.*}}
15+
1316
// These tests fail on previously released dylibs, investigation needed.
1417
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12|13|14|15}}
1518
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx{{11.0|12.0}}

‎libcxxabi/test/forced_unwind3.pass.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
// UNSUPPORTED: no-threads
1414
// UNSUPPORTED: no-exceptions
1515

16+
// VE only supports SjLj and doesn't provide _Unwind_ForcedUnwind.
17+
// UNSUPPORTED: target={{ve-.*}}
18+
1619
#include <assert.h>
1720
#include <exception>
1821
#include <stdlib.h>

0 commit comments

Comments
 (0)
Please sign in to comment.