We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e7b424 commit ef02de9Copy full SHA for ef02de9
1 file changed
tests/by-util/test_dd.rs
@@ -2100,3 +2100,17 @@ fn test_ascii_case_conversion_fallback() {
2100
.succeeds();
2101
assert_eq!(result.stdout(), input);
2102
}
2103
+
2104
+#[test]
2105
+fn test_bs_not_positive() {
2106
+ for bs in [-5, 0, 0x0] {
2107
+ for bs_param in ["bs", "ibs", "obs", "cbs"] {
2108
+ new_ucmd!()
2109
+ .args(&[format!("{bs_param}={bs}")])
2110
+ .fails()
2111
+ .no_stdout()
2112
+ .code_is(1)
2113
+ .stderr_is(format!("dd: invalid number: ‘{bs}’\n"));
2114
+ }
2115
2116
+}
0 commit comments