Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/by-util/test_arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ fn test_arch_help() {
fn test_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails_with_code(1);
}

#[test]
fn test_arch_output_is_not_empty() {
let result = new_ucmd!().run();
result.success();
Comment thread
valerioedu marked this conversation as resolved.
Outdated
assert!(!result.stdout_str().trim().is_empty(), "arch output was empty");
}