Skip to content

Commit 096249d

Browse files
committed
CI fixes (formatting, disable semantic-related tests in the C++03 mode)
1 parent b0f8174 commit 096249d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

libcxx/test/libcxx/assertions/semantics/assertion_semantic_incorrect_value.sh.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
// Modules build produces a different error ("Could not build module 'std'").
1313
// UNSUPPORTED: clang-modules-build
14+
// UNSUPPORTED: c++03
1415
// REQUIRES: verify-support
1516

1617
// Note that GCC doesn't support `-Wno-macro-redefined`.

libcxx/test/libcxx/assertions/semantics/override_with_quick_enforce_semantic.pass.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020

2121
int main(int, char**) {
2222
_LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(true, "Should not fire");
23-
TEST_LIBCPP_ASSERT_FAILURE([] { _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(false, "Should fire without logging a message"); }(),
24-
"The message should not matter");
23+
TEST_LIBCPP_ASSERT_FAILURE(
24+
[] { _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(false, "Should fire without logging a message"); }(),
25+
"The message should not matter");
2526

2627
return 0;
2728
}

libcxx/test/support/test.support/test_check_assertion.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int main(int, char**) {
9999
// Success -- assertion failure with a specific matcher.
100100
TEST_DEATH_TEST_MATCHES(Outcome::Success, assertion_death_cause, good_matcher, fail_assert());
101101

102-
#if _LIBCPP_ASSERTION_SEMANTIC == _LIBCPP_ASSERTION_SEMANTIC_ENFORCE
102+
# if _LIBCPP_ASSERTION_SEMANTIC == _LIBCPP_ASSERTION_SEMANTIC_ENFORCE
103103
// Failure -- error message doesn't match.
104104
TEST_DEATH_TEST_MATCHES(Outcome::UnexpectedErrorMessage, assertion_death_cause, bad_matcher, fail_assert());
105105
# endif

0 commit comments

Comments
 (0)