Prefix LOG and CHECK with AOS_
This prepares us for introducing glog more widely and transitioning
things over where they make sense.
Change-Id: Ic6c208882407bc2153fe875ffc736d66f5c8ade5
diff --git a/aos/condition_test.cc b/aos/condition_test.cc
index 602513e..1e8d06c 100644
--- a/aos/condition_test.cc
+++ b/aos/condition_test.cc
@@ -150,7 +150,7 @@
new (shared_) Shared();
}
~ConditionTestProcess() {
- CHECK_EQ(child_, -1);
+ AOS_CHECK_EQ(child_, -1);
}
void Start() {
@@ -162,7 +162,7 @@
Run();
exit(EXIT_SUCCESS);
} else { // in parent
- CHECK_NE(child_, -1);
+ AOS_CHECK_NE(child_, -1);
ASSERT_EQ(0, futex_wait(&shared_->ready));
@@ -189,7 +189,7 @@
return ::testing::AssertionSuccess() << "already been too long";
}
} else {
- CHECK_EQ(0, futex_wait(&shared_->done_delaying));
+ AOS_CHECK_EQ(0, futex_wait(&shared_->done_delaying));
}
::std::this_thread::sleep_for(chrono::milliseconds(10));
if (!shared_->finished) {
@@ -250,16 +250,16 @@
}
void Join() {
- CHECK_NE(child_, -1);
+ AOS_CHECK_NE(child_, -1);
int status;
do {
- CHECK_EQ(waitpid(child_, &status, 0), child_);
+ AOS_CHECK_EQ(waitpid(child_, &status, 0), child_);
} while (!(WIFEXITED(status) || WIFSIGNALED(status)));
child_ = -1;
}
void Kill() {
- CHECK_NE(child_, -1);
- PCHECK(kill(child_, SIGTERM));
+ AOS_CHECK_NE(child_, -1);
+ AOS_PCHECK(kill(child_, SIGTERM));
Join();
}