Skip to content

Commit

Permalink
[libc++abi][test][VE] Add UNSUPPORTED to pass tests on VE
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kaz7 committed Sep 13, 2023
1 parent e0c54a2 commit 9a220dc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libcxxabi/test/backtrace_test.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

// UNSUPPORTED: no-exceptions

// VE only supports SjLj and doesn't provide _Unwind_Backtrace.
// UNSUPPORTED: target={{ve-.*}}

#include <assert.h>
#include <stddef.h>
#include <unwind.h>
Expand Down
3 changes: 3 additions & 0 deletions libcxxabi/test/forced_unwind1.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

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

// VE only supports SjLj and doesn't provide _Unwind_ForcedUnwind.
// UNSUPPORTED: target={{ve-.*}}

// These tests fail on previously released dylibs, investigation needed.
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12|13|14|15}}
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx{{11.0|12.0}}
Expand Down
3 changes: 3 additions & 0 deletions libcxxabi/test/forced_unwind2.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

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

// VE only supports SjLj and doesn't provide _Unwind_ForcedUnwind.
// UNSUPPORTED: target={{ve-.*}}

// These tests fail on previously released dylibs, investigation needed.
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx10.{{9|10|11|12|13|14|15}}
// XFAIL: stdlib=apple-libc++ && target={{.+}}-apple-macosx{{11.0|12.0}}
Expand Down
3 changes: 3 additions & 0 deletions libcxxabi/test/forced_unwind3.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
// UNSUPPORTED: no-threads
// UNSUPPORTED: no-exceptions

// VE only supports SjLj and doesn't provide _Unwind_ForcedUnwind.
// UNSUPPORTED: target={{ve-.*}}

#include <assert.h>
#include <exception>
#include <stdlib.h>
Expand Down

0 comments on commit 9a220dc

Please sign in to comment.