Skip to content

Commit

Permalink
Add an abort test
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Apr 30, 2024
1 parent e0c0664 commit 23e4832
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tests/integrations/basic-fail/Cargo.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,10 @@ FAILURES:

test result: FAIL. 15 failed;

Building dependencies ... ok
tests/actual_tests_bless/abort.rs ... FAILED
tests/actual_tests_bless/aux_build_not_found.rs ... FAILED
tests/actual_tests_bless/aux_proc_macro_misuse.rs ... FAILED
Building dependencies ... ok
Building aux file tests/actual_tests_bless/auxiliary/the_proc_macro.rs ... ok
tests/actual_tests_bless/aux_proc_macro_no_main.rs ... FAILED
tests/actual_tests_bless/compile_flags_quotes.rs ... FAILED
Expand Down Expand Up @@ -497,6 +498,18 @@ tests/actual_tests_bless/unknown_revision.rs ... FAILED
tests/actual_tests_bless/unknown_revision2.rs ... FAILED
tests/actual_tests_bless/wrong_diagnostic_code.rs ... FAILED

FAILED TEST: tests/actual_tests_bless/abort.rs
command: "$CMD"

error: run(0) test got signal: 6 (SIGABRT) (core dumped), but expected 0
= note: the test was expected to run successfully

Check failure on line 505 in tests/integrations/basic-fail/Cargo.stdout

View workflow job for this annotation

GitHub Actions / tests (macos-latest, x86_64-apple-darwin)

actual output differs from expected

this line was expected to be `error: run(0) test got signal: 6 (SIGABRT), but expected 0`

full stderr:

full stdout:



FAILED TEST: tests/actual_tests_bless/aux_build_not_found.rs
command: "$CMD"

Expand Down Expand Up @@ -1010,6 +1023,7 @@ full stdout:


FAILURES:
tests/actual_tests_bless/abort.rs
tests/actual_tests_bless/aux_build_not_found.rs
tests/actual_tests_bless/aux_proc_macro_misuse.rs
tests/actual_tests_bless/aux_proc_macro_no_main.rs
Expand All @@ -1032,7 +1046,7 @@ FAILURES:
tests/actual_tests_bless/unknown_revision2.rs
tests/actual_tests_bless/wrong_diagnostic_code.rs

test result: FAIL. 21 failed; 14 passed; 3 ignored;
test result: FAIL. 22 failed; 14 passed; 3 ignored;

Building dependencies ... ok
tests/actual_tests_bless_yolo/revisions_bad.rs (revision `foo`) ... ok
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//@run

fn main() {
std::process::abort();
}

0 comments on commit 23e4832

Please sign in to comment.