Browse Source

Merge branch 'master' of ssh://git.kea.isc.org/git/kea

Tomek Mrugalski 11 years ago
parent
commit
cfe707bddc
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/lib/asiolink/tests/interval_timer_unittest.cc

+ 6 - 2
src/lib/asiolink/tests/interval_timer_unittest.cc

@@ -324,7 +324,9 @@ TEST_F(IntervalTimerTest, intervalModeTest) {
     // work or the the service has been stopped by the test timer.
     // work or the the service has been stopped by the test timer.
     int cnt = 0;
     int cnt = 0;
     while (((cnt = io_service_.get_io_service().run_one()) > 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.
     // If cnt is zero, then something went wrong.
     EXPECT_TRUE(cnt > 0);
     EXPECT_TRUE(cnt > 0);
@@ -372,7 +374,9 @@ TEST_F(IntervalTimerTest, timerReuseTest) {
     // work or the the service has been stopped by the test timer.
     // work or the the service has been stopped by the test timer.
     int cnt = 0;
     int cnt = 0;
     while ((cnt = io_service_.get_io_service().run_one())
     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.
     // If cnt is zero, then something went wrong.
     EXPECT_TRUE(cnt > 0);
     EXPECT_TRUE(cnt > 0);