Skip to content

Commit

Permalink
Attempt to improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed May 28, 2017
1 parent 0059fd4 commit 5857cbc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:
matrix:
- CXX_FLAGS="--coverage -fsanitize=address,leak,undefined" LINK_FLAGS="--coverage" QLIBS="-lasan -lubsan" TOOLSET=gcc-6 CXXTOOLSET=g++-6 GCOV="--gcov-tool gcov-6"
- CXX_FLAGS="--coverage -fsanitize=address,leak,undefined" LINK_FLAGS="--coverage" QLIBS="-lasan -lubsan" TOOLSET=gcc-5 CXXTOOLSET=g++-5 GCOV="--gcov-tool gcov-5"
- CXX_FLAGS="--coverage" LINK_FLAGS="--coverage" TOOLSET=gcc CXXTOOLSET=g++
- CXX_FLAGS="--coverage -O0" LINK_FLAGS="--coverage" TOOLSET=gcc CXXTOOLSET=g++

- CXX_FLAGS="-Wno-c++11-narrowing -fsanitize=address,leak,undefined" LINK_FLAGS="-fsanitize=address,leak,undefined" TOOLSET=clang-3.9 CXXTOOLSET=clang++-3.9
- CXX_FLAGS="-Wno-c++11-narrowing" LINK_FLAGS="" TOOLSET=clang-3.6 CXXTOOLSET=clang++-3.6
Expand Down
5 changes: 4 additions & 1 deletion Chapter06/05_tasks_processor_multithread/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ int main() {
tasks_processor::start_multiple(threads_count);
time_t t2 = time(NULL);
// One additional second for some io_service and OS delays
assert(t2 - t1 < 1);
assert(t2 - t1 < 1);

tasks_processor::start_multiple();
tasks_processor::stop();
}

0 comments on commit 5857cbc

Please sign in to comment.