Skip to content

Commit a6b2fd2

Browse files
committed
fix
1 parent 19e3ea8 commit a6b2fd2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/windows.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ impl ECMAScriptAtomicWaitImpl for Racy<'_, u32> {
3333
)
3434
};
3535
if result == 1 {
36-
eprintln!("Result: {result}");
3736
Ok(())
3837
} else {
3938
let errno = std::io::Error::last_os_error().raw_os_error().unwrap_or(0);

tests/test.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ fn wait_unexpected() {
1818
let t = Instant::now();
1919
let a = RacyBox::new(0u32).unwrap();
2020
let a = a.as_slice().get(0).unwrap();
21+
// Note: Windows doesn't report early-exits.
22+
#[cfg(not(windows))]
2123
assert_eq!(a.wait(1), Err(FutexError::NotEqual));
24+
#[cfg(windows)]
25+
assert_eq!(a.wait(1), Ok(()));
2226
assert!(t.elapsed().as_millis() < 100);
2327
}
2428

0 commit comments

Comments
 (0)