Merge pull request #2770 from sylvestre/unbreak-windows-ci

Try to unbreak the code coverage CI.
This commit is contained in:
Sylvestre Ledru 2021-12-14 11:59:21 +01:00 committed by GitHub
commit d5463ea5b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -918,6 +918,7 @@ fn test_compress_merge() {
#[test]
fn test_compress_fail() {
#[cfg(not(windows))]
TestScenario::new(util_name!())
.ucmd_keepenv()
.args(&[
@ -930,6 +931,21 @@ fn test_compress_fail() {
])
.fails()
.stderr_only("sort: couldn't execute compress program: errno 2");
// With coverage, it fails with a different error:
// "thread 'main' panicked at 'called `Option::unwrap()` on ...
// So, don't check the output
#[cfg(windows)]
TestScenario::new(util_name!())
.ucmd_keepenv()
.args(&[
"ext_sort.txt",
"-n",
"--compress-program",
"nonexistent-program",
"-S",
"10",
])
.fails();
}
#[test]