coreutils/tests/by-util/test_pathchk.rs

16 lines
313 B
Rust
Raw Normal View History

use crate::common::util::*;
#[test]
fn test_default_mode() {
// test the default mode
// accept some reasonable default
new_ucmd!().args(&["abc/def"]).succeeds().no_stdout();
// fail on long inputs
2020-04-13 18:36:03 +00:00
new_ucmd!()
.args(&["test".repeat(20000)])
2020-04-13 18:36:03 +00:00
.fails()
.no_stdout();
}