Skip to content

Commit 7f53c1f

Browse files
committed
[meta] prepare release
1 parent 90a6555 commit 7f53c1f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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

510
This 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

src/runner.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)