cleaned up lots of stuff (no functional changes)
ipc_stress_test runs all of the tests successfully now. In order to make
that work, I had to fix raw_queue_test so it didn't count the time spent
waiting for the fork() to complete as part of the timeout, and I cleaned
up various other parts at the same time.
Also improved some documentation and removed the mutex fairness tester
because it was slow, prone to random failures, and it's always been kind
of a fishy test.
diff --git a/aos/common/condition_test.cc b/aos/common/condition_test.cc
index 49112bc..28b4adc 100644
--- a/aos/common/condition_test.cc
+++ b/aos/common/condition_test.cc
@@ -76,6 +76,7 @@
child_ = fork();
if (child_ == 0) { // in child
+ ::aos::common::testing::PreventExit();
Run();
exit(EXIT_SUCCESS);
} else { // in parent
@@ -131,11 +132,11 @@
ready.Lock();
}
- bool started;
- bool delayed;
+ volatile bool started;
+ volatile bool delayed;
Mutex done_delaying;
::Time start_time;
- bool finished;
+ volatile bool finished;
Mutex ready;
};
static_assert(shm_ok<Shared>::value,