mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 17:58:06 +00:00
fix a build failure with success()
This commit is contained in:
parent
9517395839
commit
5f61848a38
1 changed files with 2 additions and 2 deletions
|
@ -976,7 +976,7 @@ fn test_cp_reflink_always() {
|
||||||
.arg(TEST_EXISTING_FILE)
|
.arg(TEST_EXISTING_FILE)
|
||||||
.run();
|
.run();
|
||||||
|
|
||||||
if result.success {
|
if result.succeeded() {
|
||||||
// Check the content of the destination file
|
// Check the content of the destination file
|
||||||
assert_eq!(at.read(TEST_EXISTING_FILE), "Hello, World!\n");
|
assert_eq!(at.read(TEST_EXISTING_FILE), "Hello, World!\n");
|
||||||
} else {
|
} else {
|
||||||
|
@ -1014,7 +1014,7 @@ fn test_cp_reflink_never() {
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
fn test_cp_reflink_bad() {
|
fn test_cp_reflink_bad() {
|
||||||
let (_, mut ucmd) = at_and_ucmd!();
|
let (_, mut ucmd) = at_and_ucmd!();
|
||||||
let result = ucmd
|
let _result = ucmd
|
||||||
.arg("--reflink=bad")
|
.arg("--reflink=bad")
|
||||||
.arg(TEST_HELLO_WORLD_SOURCE)
|
.arg(TEST_HELLO_WORLD_SOURCE)
|
||||||
.arg(TEST_EXISTING_FILE)
|
.arg(TEST_EXISTING_FILE)
|
||||||
|
|
Loading…
Reference in a new issue