1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #7940 from Qelxiros/7671-timeout-tests

timeout: add hex parsing test
This commit is contained in:
Daniel Hofstetter 2025-05-20 10:39:56 +02:00 committed by GitHub
commit 147027022a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,3 +1,5 @@
use std::time::Duration;
// This file is part of the uutils coreutils package.
//
// For the full copyright and license information, please view the LICENSE
@ -195,3 +197,12 @@ fn test_kill_subprocess() {
.stdout_contains("inside_trap")
.stderr_contains("Terminated");
}
#[test]
fn test_hex_timeout_ending_with_d() {
new_ucmd!()
.args(&["0x0.1d", "sleep", "10"])
.timeout(Duration::from_secs(1))
.fails_with_code(124)
.no_output();
}