mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Merge pull request #2770 from sylvestre/unbreak-windows-ci
Try to unbreak the code coverage CI.
This commit is contained in:
commit
d5463ea5b9
1 changed files with 16 additions and 0 deletions
|
@ -918,6 +918,7 @@ fn test_compress_merge() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_compress_fail() {
|
fn test_compress_fail() {
|
||||||
|
#[cfg(not(windows))]
|
||||||
TestScenario::new(util_name!())
|
TestScenario::new(util_name!())
|
||||||
.ucmd_keepenv()
|
.ucmd_keepenv()
|
||||||
.args(&[
|
.args(&[
|
||||||
|
@ -930,6 +931,21 @@ fn test_compress_fail() {
|
||||||
])
|
])
|
||||||
.fails()
|
.fails()
|
||||||
.stderr_only("sort: couldn't execute compress program: errno 2");
|
.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]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue