Test: the at-once notice's bounds read in its own wording
The check looked for " 60 s" where the notice says "(60 s while", so it failed on Linux (ms01 job 4085, 3 of 3). It now reads each bound where the notice names it. Verified: the wording matched against AT_ONCE_NOTICE by hand; the Linux run follows. (cherry picked from commit 4da8cc36e157e307d6c179a1ba9087c11c2ca887)
This commit is contained in:
1 parent
1b5c55ed02
commit
8cc7d1bacd
1 file changed
+5
-2
@@ -1058,8 +1058,11 @@ fn a_busy_exit_past_the_bound_ends_at_once_with_its_status() {
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
#[test]
|
||||
fn the_at_once_notice_names_the_bounds() {
|
||||
for bound in [exit_guard::BOUND, exit_guard::MAKING_BOUND] {
|
||||
let named = format!(" {} s", bound.as_secs());
|
||||
let named = [
|
||||
format!("wait of {} s", exit_guard::BOUND.as_secs()),
|
||||
format!("({} s while", exit_guard::MAKING_BOUND.as_secs()),
|
||||
];
|
||||
for named in named {
|
||||
assert!(
|
||||
exit_guard::AT_ONCE_NOTICE.contains(&named),
|
||||
"{named:?} in {}",
|
||||
|
||||
Reference in new issue
Block a user