mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
tests: fix no_stderr check in stderr_only_bytes()
Fix a bug in `stderr_only_bytes()` where it was unintentionally checking `no_stderr()` when it should have been checking `no_stdout()`.
This commit is contained in:
parent
1f7c08d87b
commit
e6a63a78f6
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ impl CmdResult {
|
||||||
/// of the passed value
|
/// of the passed value
|
||||||
/// 2. the command resulted in an empty stdout stream
|
/// 2. the command resulted in an empty stdout stream
|
||||||
pub fn stderr_only_bytes<T: AsRef<[u8]>>(&self, msg: T) -> &Self {
|
pub fn stderr_only_bytes<T: AsRef<[u8]>>(&self, msg: T) -> &Self {
|
||||||
self.no_stderr().stderr_is_bytes(msg)
|
self.no_stdout().stderr_is_bytes(msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn fails_silently(&self) -> &Self {
|
pub fn fails_silently(&self) -> &Self {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue