Skip to content

Commit 29a1f43

Browse files
committed
Update #945 to normalize failure output
Resolves comment #945 (comment)
1 parent 0e74bd7 commit 29a1f43

17 files changed

+8
-9
lines changed

regression-tests/pure2-assert-expected-not-null.cpp2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ bad_expected_access: () -> int =
1717

1818
main: () -> int =
1919
{
20+
std::set_terminate(std::abort);
2021
return fine() + bad_expected_access();
2122
}

regression-tests/pure2-assert-optional-not-null.cpp2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ bad_optional_access: () -> int =
1616

1717
main: () -> int =
1818
{
19+
std::set_terminate(std::abort);
1920
return fine() + bad_optional_access();
2021
}

regression-tests/pure2-assert-shared-ptr-not-null.cpp2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ bad_shared_ptr_access: () -> int =
1717

1818
main: () -> int =
1919
{
20+
std::set_terminate(std::abort);
2021
return fine() + bad_shared_ptr_access();
2122
}

regression-tests/pure2-assert-unique-ptr-not-null.cpp2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ bad_unique_ptr_access: () -> int =
1717

1818
main: () -> int =
1919
{
20+
std::set_terminate(std::abort);
2021
return fine() + bad_unique_ptr_access();
2122
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Null safety violation: std::optional does not contain a value
2-
terminate called without an active exception
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Null safety violation: std::shared_ptr is empty
2-
terminate called without an active exception
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Null safety violation: std::unique_ptr is empty
2-
terminate called without an active exception
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Null safety violation: std::optional does not contain a value
2-
terminate called without an active exception
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Null safety violation: std::shared_ptr is empty
2-
terminate called without an active exception
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Null safety violation: std::unique_ptr is empty
2-
terminate called without an active exception
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Null safety violation: std::optional does not contain a value
2-
terminate called without an active exception
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Null safety violation: std::shared_ptr is empty
2-
terminate called without an active exception
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
Null safety violation: std::unique_ptr is empty
2-
terminate called without an active exception

regression-tests/test-results/pure2-assert-expected-not-null.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#line 18 "pure2-assert-expected-not-null.cpp2"
4848
[[nodiscard]] auto main() -> int
4949
{
50+
std::set_terminate(std::abort);
5051
return fine() + bad_expected_access();
5152
}
5253

regression-tests/test-results/pure2-assert-optional-not-null.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#line 17 "pure2-assert-optional-not-null.cpp2"
4747
[[nodiscard]] auto main() -> int
4848
{
49+
std::set_terminate(std::abort);
4950
return fine() + bad_optional_access();
5051
}
5152

regression-tests/test-results/pure2-assert-shared-ptr-not-null.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#line 18 "pure2-assert-shared-ptr-not-null.cpp2"
4848
[[nodiscard]] auto main() -> int
4949
{
50+
std::set_terminate(std::abort);
5051
return fine() + bad_shared_ptr_access();
5152
}
5253

regression-tests/test-results/pure2-assert-unique-ptr-not-null.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#line 18 "pure2-assert-unique-ptr-not-null.cpp2"
4848
[[nodiscard]] auto main() -> int
4949
{
50+
std::set_terminate(std::abort);
5051
return fine() + bad_unique_ptr_access();
5152
}
5253

0 commit comments

Comments
 (0)