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 8866ec3 commit 3718db6Copy full SHA for 3718db6
tests/by-util/test_timeout.rs
@@ -1,3 +1,5 @@
1
+use std::time::Duration;
2
+
3
// This file is part of the uutils coreutils package.
4
//
5
// For the full copyright and license information, please view the LICENSE
@@ -195,3 +197,12 @@ fn test_kill_subprocess() {
195
197
.stdout_contains("inside_trap")
196
198
.stderr_contains("Terminated");
199
}
200
201
+#[test]
202
+fn test_hex_timeout_ending_with_d() {
203
+ new_ucmd!()
204
+ .args(&["0x0.1d", "sleep", "10"])
205
+ .timeout(Duration::from_secs(1))
206
+ .fails_with_code(124)
207
+ .stderr_contains("Terminated");
208
+}
0 commit comments