From 238f769f7a22c420247e7d35b54776eaa56c2a03 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Fri, 14 Dec 2018 10:34:45 +0800 Subject: [PATCH] adjust test case --- test/test_ipc.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_ipc.cpp b/test/test_ipc.cpp index 62e40f9..595e661 100644 --- a/test/test_ipc.cpp +++ b/test/test_ipc.cpp @@ -80,11 +80,11 @@ void benchmark() { x = datas[cnt]; } // std::this_thread::sleep_for(std::chrono::milliseconds(1)); - } - if (x == 0) break; // quit - if (x != -1) { - seq.push_back(x); - ++cnt; + if (x == 0) break; // quit + if (x != -1) { + seq.push_back(x); + ++cnt; + } } std::this_thread::yield(); }