From: JINMEI Tatuya Date: Mon, 17 Sep 2012 17:10:47 +0000 (-0700) Subject: [2202] some more minor editorial fix: spacing X-Git-Tag: trac2402_base~79^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=beccbfe1acb5e6e309d5dee9cbc4461434091520;p=thirdparty%2Fkea.git [2202] some more minor editorial fix: spacing --- diff --git a/src/lib/util/threads/tests/thread_unittest.cc b/src/lib/util/threads/tests/thread_unittest.cc index 7ba162b49b..f94c3595cf 100644 --- a/src/lib/util/threads/tests/thread_unittest.cc +++ b/src/lib/util/threads/tests/thread_unittest.cc @@ -44,7 +44,7 @@ doSomething(int* x) { // We just test that we can forget about the thread and nothing // bad will happen on our side. TEST(ThreadTest, detached) { - for (size_t i = 0; i < detached_iterations; ++ i) { + for (size_t i = 0; i < detached_iterations; ++i) { int* x = new int[10]; Thread thread(boost::bind(&doSomething, x)); } @@ -58,7 +58,7 @@ markRun(bool* mark) { // Wait for a thread to end first. The variable must be set at the time. TEST(ThreadTest, wait) { - for (size_t i = 0; i < iterations; ++ i) { + for (size_t i = 0; i < iterations; ++i) { bool mark = false; Thread thread(boost::bind(markRun, &mark)); thread.wait(); @@ -75,14 +75,14 @@ throwSomething() { // Exception in the thread we forget about should not do anything to us TEST(ThreadTest, detachedException) { - for (size_t i = 0; i < detached_iterations; ++ i) { + for (size_t i = 0; i < detached_iterations; ++i) { Thread thread(throwSomething); } } // An uncaught exception in the thread should propagate through wait TEST(ThreadTest, exception) { - for (size_t i = 0; i < iterations; ++ i) { + for (size_t i = 0; i < iterations; ++i) { Thread thread(throwSomething); ASSERT_THROW(thread.wait(), Thread::UncaughtException); }