summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorBryant Mairs <bryantmairs@google.com>2017-12-15 15:38:40 -0800
committerBryant Mairs <bryantmairs@google.com>2017-12-20 07:05:04 -0800
commitb814db046aed7a0a683d4f14e622a721ddcff8cb (patch)
tree337bfc2f3eb2dda9fd32d5eadc46b780efee0aeb /test/sys
parenta6b394ee4caf8e1b7d3eadf4ffc0429ea461889c (diff)
downloadnix-b814db046aed7a0a683d4f14e622a721ddcff8cb.zip
Use '!' instead of '== false'
Reads a little bit easier
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/test_aio.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sys/test_aio.rs b/test/sys/test_aio.rs
index e84d95b5..1f807585 100644
--- a/test/sys/test_aio.rs
+++ b/test/sys/test_aio.rs
@@ -347,7 +347,7 @@ fn test_write_sigev_signal() {
},
LioOpcode::LIO_NOP);
aiocb.write().unwrap();
- while SIGNALED.load(Ordering::Relaxed) == false {
+ while !SIGNALED.load(Ordering::Relaxed) {
thread::sleep(time::Duration::from_millis(10));
}
@@ -487,7 +487,7 @@ fn test_lio_listio_signal() {
unsafe { sigaction(Signal::SIGUSR2, &sa) }.unwrap();
let err = lio_listio(LioMode::LIO_NOWAIT, &[&mut wcb, &mut rcb], sigev_notify);
err.expect("lio_listio failed");
- while SIGNALED.load(Ordering::Relaxed) == false {
+ while !SIGNALED.load(Ordering::Relaxed) {
thread::sleep(time::Duration::from_millis(10));
}