diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-12-18 06:21:31 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-12-19 14:15:46 +0000 |
commit | 7b3546f050fa2420bb6dc5222f078d2401cdef62 (patch) | |
tree | dded9791b21a4286b930e1556e84e88476c9b6a7 /messagebus/src/tests | |
parent | 561d81f41cf3ac93990c4d13743c97aff932f1c0 (diff) |
Only include what you need
Diffstat (limited to 'messagebus/src/tests')
-rw-r--r-- | messagebus/src/tests/advancedrouting/advancedrouting.cpp | 8 | ||||
-rw-r--r-- | messagebus/src/tests/auto-reply/auto-reply.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/blob/blob.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/bucketsequence/bucketsequence.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/choke/choke.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/configagent/configagent.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/context/context.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/emptyreply/emptyreply.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/error/error.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/identity/identity.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/loadbalance/loadbalance.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/messagebus/messagebus.cpp | 3 | ||||
-rw-r--r-- | messagebus/src/tests/messageordering/messageordering.cpp | 6 |
13 files changed, 3 insertions, 44 deletions
diff --git a/messagebus/src/tests/advancedrouting/advancedrouting.cpp b/messagebus/src/tests/advancedrouting/advancedrouting.cpp index 976746b0738..384c9be667f 100644 --- a/messagebus/src/tests/advancedrouting/advancedrouting.cpp +++ b/messagebus/src/tests/advancedrouting/advancedrouting.cpp @@ -1,8 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("routing_test"); - #include <vespa/messagebus/emptyreply.h> #include <vespa/messagebus/errorcode.h> #include <vespa/messagebus/messagebus.h> @@ -75,22 +71,18 @@ TestData::start() { _srcSession = _srcServer.mb.createSourceSession(SourceSessionParams().setReplyHandler(_srcHandler)); if (_srcSession.get() == NULL) { - LOG(error, "Could not create source session."); return false; } _fooSession = _dstServer.mb.createDestinationSession(DestinationSessionParams().setName("foo").setMessageHandler(_fooHandler)); if (_fooSession.get() == NULL) { - LOG(error, "Could not create foo session."); return false; } _barSession = _dstServer.mb.createDestinationSession(DestinationSessionParams().setName("bar").setMessageHandler(_barHandler)); if (_barSession.get() == NULL) { - LOG(error, "Could not create bar session."); return false; } _bazSession = _dstServer.mb.createDestinationSession(DestinationSessionParams().setName("baz").setMessageHandler(_bazHandler)); if (_bazSession.get() == NULL) { - LOG(error, "Could not create baz session."); return false; } if (!_srcServer.waitSlobrok("dst/*", 3u)) { diff --git a/messagebus/src/tests/auto-reply/auto-reply.cpp b/messagebus/src/tests/auto-reply/auto-reply.cpp index 876755dfd0e..fba1d78eab5 100644 --- a/messagebus/src/tests/auto-reply/auto-reply.cpp +++ b/messagebus/src/tests/auto-reply/auto-reply.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("auto-reply_test"); #include <vespa/messagebus/emptyreply.h> #include <vespa/messagebus/routablequeue.h> diff --git a/messagebus/src/tests/blob/blob.cpp b/messagebus/src/tests/blob/blob.cpp index 9b0df1ae476..4b84bdfd9f2 100644 --- a/messagebus/src/tests/blob/blob.cpp +++ b/messagebus/src/tests/blob/blob.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("blob_test"); #include <vespa/vespalib/testkit/testapp.h> #include <vespa/messagebus/blob.h> #include <vespa/messagebus/blobref.h> diff --git a/messagebus/src/tests/bucketsequence/bucketsequence.cpp b/messagebus/src/tests/bucketsequence/bucketsequence.cpp index 6036c43f659..2661a0e86e1 100644 --- a/messagebus/src/tests/bucketsequence/bucketsequence.cpp +++ b/messagebus/src/tests/bucketsequence/bucketsequence.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("bucketsequence_test"); #include <vespa/messagebus/errorcode.h> #include <vespa/messagebus/routing/retrytransienterrorspolicy.h> diff --git a/messagebus/src/tests/choke/choke.cpp b/messagebus/src/tests/choke/choke.cpp index 567ec52db79..023554250cc 100644 --- a/messagebus/src/tests/choke/choke.cpp +++ b/messagebus/src/tests/choke/choke.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("choke_test"); #include <vespa/messagebus/emptyreply.h> #include <vespa/messagebus/errorcode.h> diff --git a/messagebus/src/tests/configagent/configagent.cpp b/messagebus/src/tests/configagent/configagent.cpp index ab1f4cdbe11..29b58494c8a 100644 --- a/messagebus/src/tests/configagent/configagent.cpp +++ b/messagebus/src/tests/configagent/configagent.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("configagent_test"); #include <vespa/vespalib/testkit/testapp.h> #include <vespa/config/print/fileconfigreader.h> #include <vespa/messagebus/configagent.h> diff --git a/messagebus/src/tests/context/context.cpp b/messagebus/src/tests/context/context.cpp index ccb136e7b81..99d674c4997 100644 --- a/messagebus/src/tests/context/context.cpp +++ b/messagebus/src/tests/context/context.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("context_test"); #include <vespa/messagebus/destinationsession.h> #include <vespa/messagebus/intermediatesession.h> diff --git a/messagebus/src/tests/emptyreply/emptyreply.cpp b/messagebus/src/tests/emptyreply/emptyreply.cpp index 711a21edd17..3313a27d405 100644 --- a/messagebus/src/tests/emptyreply/emptyreply.cpp +++ b/messagebus/src/tests/emptyreply/emptyreply.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("emptyreply_test"); #include <vespa/vespalib/testkit/testapp.h> #include <vespa/messagebus/emptyreply.h> diff --git a/messagebus/src/tests/error/error.cpp b/messagebus/src/tests/error/error.cpp index d5779aadeeb..8828ce11f9c 100644 --- a/messagebus/src/tests/error/error.cpp +++ b/messagebus/src/tests/error/error.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("error_test"); #include <vespa/messagebus/destinationsession.h> #include <vespa/messagebus/emptyreply.h> diff --git a/messagebus/src/tests/identity/identity.cpp b/messagebus/src/tests/identity/identity.cpp index 95c499e3ff2..99aa766138e 100644 --- a/messagebus/src/tests/identity/identity.cpp +++ b/messagebus/src/tests/identity/identity.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("identity_test"); #include <vespa/vespalib/testkit/testapp.h> #include <vespa/messagebus/network/identity.h> diff --git a/messagebus/src/tests/loadbalance/loadbalance.cpp b/messagebus/src/tests/loadbalance/loadbalance.cpp index f49ca13708c..7e917ee79c7 100644 --- a/messagebus/src/tests/loadbalance/loadbalance.cpp +++ b/messagebus/src/tests/loadbalance/loadbalance.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("loadbalance_test"); #include <vespa/vespalib/testkit/testapp.h> #include <vespa/messagebus/destinationsession.h> diff --git a/messagebus/src/tests/messagebus/messagebus.cpp b/messagebus/src/tests/messagebus/messagebus.cpp index a887759ac02..ecfec5ac873 100644 --- a/messagebus/src/tests/messagebus/messagebus.cpp +++ b/messagebus/src/tests/messagebus/messagebus.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("messagebus_test"); #include <vespa/messagebus/destinationsession.h> #include <vespa/messagebus/emptyreply.h> diff --git a/messagebus/src/tests/messageordering/messageordering.cpp b/messagebus/src/tests/messageordering/messageordering.cpp index 97daee80d99..a502769a9e8 100644 --- a/messagebus/src/tests/messageordering/messageordering.cpp +++ b/messagebus/src/tests/messageordering/messageordering.cpp @@ -1,7 +1,4 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/fastos/fastos.h> -#include <vespa/log/log.h> -LOG_SETUP("messageordering_test"); #include <vespa/vespalib/testkit/testapp.h> #include <vespa/messagebus/messagebus.h> #include <vespa/messagebus/sourcesession.h> @@ -18,6 +15,9 @@ LOG_SETUP("messageordering_test"); #include <vespa/vespalib/util/vstringfmt.h> #include <stdexcept> +#include <vespa/log/log.h> +LOG_SETUP("messageordering_test"); + using namespace mbus; TEST_SETUP(Test); |