mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
add timeout test for hex parsing
This commit is contained in:
committed by
Sylvestre Ledru
parent
6a828f0e74
commit
384878b5df
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user