Commit af983cde authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[master] Fix empty-bodied loop warning in asiolink unit test

Fixed Mac OS-X/gcc 4.2.1 issued warning on empty bodied
while-loops in new asiolink::IntervalTimer unit tests.
parent 742d5a19
......@@ -324,7 +324,9 @@ TEST_F(IntervalTimerTest, intervalModeTest) {
// work or the the service has been stopped by the test timer.
int cnt = 0;
while (((cnt = io_service_.get_io_service().run_one()) > 0)
&& (repeater_count < 5));
&& (repeater_count < 5)) {
// deliberately empty
};
// If cnt is zero, then something went wrong.
EXPECT_TRUE(cnt > 0);
......@@ -372,7 +374,9 @@ TEST_F(IntervalTimerTest, timerReuseTest) {
// work or the the service has been stopped by the test timer.
int cnt = 0;
while ((cnt = io_service_.get_io_service().run_one())
&& (one_shot_count < 4));
&& (one_shot_count < 4)) {
// deliberately empty
};
// If cnt is zero, then something went wrong.
EXPECT_TRUE(cnt > 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment