From de5002941fb2f65eda8f9603e4723f95e11fde97 Mon Sep 17 00:00:00 2001
From: Gabriele Contini <contini.mailing@gmail.com>
Date: 周日, 08 3月 2020 22:53:03 +0800
Subject: [PATCH] fix tests

---
 test/library/os/CMakeLists.txt |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/test/library/os/CMakeLists.txt b/test/library/os/CMakeLists.txt
index 2cda53e..4faf092 100644
--- a/test/library/os/CMakeLists.txt
+++ b/test/library/os/CMakeLists.txt
@@ -9,4 +9,8 @@
  Boost::system
 )
 
-ADD_TEST(NAME test_network COMMAND test_network)
\ No newline at end of file
+ADD_TEST(NAME test_network COMMAND test_network)
+
+if(CODE_COVERAGE AND UNIX)
+	target_compile_options(test_network PUBLIC -O0 -g --coverage)
+endif(CODE_COVERAGE AND UNIX)

--
Gitblit v1.9.1