File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ 0.2.5] - 2024-04-08
4+
5+ - Exit main via ` ExitCode ` rather than ` std::process::exit() ` . This appears to fix coverage on
6+ Windows.
7+
38## [ 0.2.4] - 2024-04-08
49
510This is a periodic maintenance release.
@@ -70,6 +75,7 @@ There are no functional changes in this release.
7075
7176(Version 0.1.0 was yanked because of a metadata issue.)
7277
78+ [ 0.2.5 ] : https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.5
7379[ 0.2.4 ] : https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.4
7480[ 0.2.3 ] : https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.3
7581[ 0.2.2 ] : https://github.com/nextest-rs/datatest-stable/releases/tag/datatest-stable-0.2.2
Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ pub fn runner(requirements: &[Requirements]) -> ExitCode {
1515 tests. sort_unstable_by ( |a, b| a. name ( ) . cmp ( b. name ( ) ) ) ;
1616
1717 let conclusion = libtest_mimic:: run ( & args, tests) ;
18+
19+ // This used to use `Conclusion::exit`, but that exits the process via `std::process::exit` as
20+ // of libtest-mimic 0.7.0. This breaks some things, e.g. llvm-cov on Windows.
21+ // https://github.com/nextest-rs/datatest-stable/issues/20
22+ //
23+ // Use `std::process::ExitCode` instead, and return it in main.
24+
1825 if conclusion. has_failed ( ) {
1926 // libtest-mimic uses exit code 101 for test failures -- retain the same behavior.
2027 101 . into ( )
You can’t perform that action at this time.
0 commit comments