diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-18 03:02:49 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-18 03:02:49 +0200 |
commit | 7a4461355f7ee8e5ec71888516cbfd640dd7e110 (patch) | |
tree | 5f800152d48de71247177c4fca93fff24dc993ac /vespalib/src/tests | |
parent | 15e7bcd9e902407fbe14cf830968f06c9fb5fb89 (diff) |
Include only what you need.
Diffstat (limited to 'vespalib/src/tests')
-rw-r--r-- | vespalib/src/tests/guard/guard_test.cpp | 3 | ||||
-rw-r--r-- | vespalib/src/tests/net/selector/selector_test.cpp | 1 | ||||
-rw-r--r-- | vespalib/src/tests/net/socket/socket_test.cpp | 2 | ||||
-rw-r--r-- | vespalib/src/tests/signalhandler/signalhandler_test.cpp | 7 | ||||
-rw-r--r-- | vespalib/src/tests/text/utf8/utf8_test.cpp | 8 |
5 files changed, 16 insertions, 5 deletions
diff --git a/vespalib/src/tests/guard/guard_test.cpp b/vespalib/src/tests/guard/guard_test.cpp index 358a56d44cb..a9d5d5f894c 100644 --- a/vespalib/src/tests/guard/guard_test.cpp +++ b/vespalib/src/tests/guard/guard_test.cpp @@ -1,8 +1,9 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/testapp.h> -#include <vespa/vespalib/testkit/test_kit.h> #include <vespa/vespalib/util/guard.h> +#include <fcntl.h> +#include <unistd.h> using namespace vespalib; diff --git a/vespalib/src/tests/net/selector/selector_test.cpp b/vespalib/src/tests/net/selector/selector_test.cpp index c91b3e0b054..964e37adf3b 100644 --- a/vespalib/src/tests/net/selector/selector_test.cpp +++ b/vespalib/src/tests/net/selector/selector_test.cpp @@ -6,6 +6,7 @@ #include <thread> #include <functional> #include <chrono> +#include <fcntl.h> using namespace vespalib; diff --git a/vespalib/src/tests/net/socket/socket_test.cpp b/vespalib/src/tests/net/socket/socket_test.cpp index bfeb73f72fc..c7cb2a0b6d9 100644 --- a/vespalib/src/tests/net/socket/socket_test.cpp +++ b/vespalib/src/tests/net/socket/socket_test.cpp @@ -10,6 +10,8 @@ #include <thread> #include <functional> #include <chrono> +#include <unistd.h> +#include <sys/stat.h> using namespace vespalib; diff --git a/vespalib/src/tests/signalhandler/signalhandler_test.cpp b/vespalib/src/tests/signalhandler/signalhandler_test.cpp index a83661e8697..b11cc5746d9 100644 --- a/vespalib/src/tests/signalhandler/signalhandler_test.cpp +++ b/vespalib/src/tests/signalhandler/signalhandler_test.cpp @@ -1,8 +1,11 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/log/log.h> -LOG_SETUP("signalhandler_test"); + #include <vespa/vespalib/testkit/testapp.h> #include <vespa/vespalib/util/signalhandler.h> +#include <unistd.h> + +#include <vespa/log/log.h> +LOG_SETUP("signalhandler_test"); using namespace vespalib; diff --git a/vespalib/src/tests/text/utf8/utf8_test.cpp b/vespalib/src/tests/text/utf8/utf8_test.cpp index 9110b44f646..a44c0a7560b 100644 --- a/vespalib/src/tests/text/utf8/utf8_test.cpp +++ b/vespalib/src/tests/text/utf8/utf8_test.cpp @@ -1,10 +1,14 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/log/log.h> -LOG_SETUP("utf8_test"); + #include <vespa/vespalib/testkit/test_kit.h> #include <vespa/vespalib/testkit/testapp.h> #include <vespa/vespalib/text/utf8.h> +#include <fcntl.h> +#include <unistd.h> + +#include <vespa/log/log.h> +LOG_SETUP("utf8_test"); #if 0 #include <vespa/fastlib/text/unicodeutil.h> #endif |