diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-12-22 13:36:12 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-01-06 23:21:16 +0100 |
commit | 991a5fdd1ba1cfd6a903e2702fb39fd8c5ce75aa (patch) | |
tree | 270892b38f5f579e297d135e7c06b4d1ecfc50fc /vespamalloc/src/tests/allocfree | |
parent | 79afdc98aa39671938eb3d6aeefacceecb08969f (diff) |
Do not include what you do not need.
Diffstat (limited to 'vespamalloc/src/tests/allocfree')
-rw-r--r-- | vespamalloc/src/tests/allocfree/allocfree.cpp | 9 | ||||
-rw-r--r-- | vespamalloc/src/tests/allocfree/creatingmanythreads.cpp | 3 | ||||
-rw-r--r-- | vespamalloc/src/tests/allocfree/linklist.cpp | 6 | ||||
-rw-r--r-- | vespamalloc/src/tests/allocfree/realloc.cpp | 5 |
4 files changed, 8 insertions, 15 deletions
diff --git a/vespamalloc/src/tests/allocfree/allocfree.cpp b/vespamalloc/src/tests/allocfree/allocfree.cpp index f1ecb74754b..7e81aaa9c1d 100644 --- a/vespamalloc/src/tests/allocfree/allocfree.cpp +++ b/vespamalloc/src/tests/allocfree/allocfree.cpp @@ -1,16 +1,15 @@ // 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> -#include <vespa/vespalib/testkit/testapp.h> #include "producerconsumer.h" +#include <vespa/vespalib/testkit/testapp.h> #include <map> +#include <vespa/log/log.h> +LOG_SETUP("allocfree_test"); + using vespalib::Consumer; using vespalib::Producer; using vespalib::ProducerConsumer; -LOG_SETUP("allocfree_test"); - TEST_SETUP(Test); //----------------------------------------------------------------------------- diff --git a/vespamalloc/src/tests/allocfree/creatingmanythreads.cpp b/vespamalloc/src/tests/allocfree/creatingmanythreads.cpp index 53de3f274cc..86da05311c6 100644 --- a/vespamalloc/src/tests/allocfree/creatingmanythreads.cpp +++ b/vespamalloc/src/tests/allocfree/creatingmanythreads.cpp @@ -1,8 +1,7 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/log/log.h> -#include <vespa/fastos/fastos.h> #include <vespa/vespalib/testkit/testapp.h> +#include <vespa/log/log.h> LOG_SETUP("creatingmanythreads_test"); TEST_SETUP(Test); diff --git a/vespamalloc/src/tests/allocfree/linklist.cpp b/vespamalloc/src/tests/allocfree/linklist.cpp index 8e33b684f3a..9642c987899 100644 --- a/vespamalloc/src/tests/allocfree/linklist.cpp +++ b/vespamalloc/src/tests/allocfree/linklist.cpp @@ -1,17 +1,15 @@ // 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/vespalib/testkit/testapp.h> #include "producerconsumer.h" +#include <vespa/vespalib/testkit/testapp.h> #include <vespamalloc/malloc/allocchunk.h> #include <vespamalloc/util/callstack.h> #include <vespa/log/log.h> +LOG_SETUP("linklist_test"); using vespalib::Consumer; using vespalib::Producer; using vespalib::ProducerConsumer; -LOG_SETUP("linklist_test"); - TEST_SETUP(Test); //----------------------------------------------------------------------------- diff --git a/vespamalloc/src/tests/allocfree/realloc.cpp b/vespamalloc/src/tests/allocfree/realloc.cpp index 8cfd50d0132..efaf89f7e1b 100644 --- a/vespamalloc/src/tests/allocfree/realloc.cpp +++ b/vespamalloc/src/tests/allocfree/realloc.cpp @@ -1,9 +1,6 @@ // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include <vespa/log/log.h> -#include <vespa/fastos/fastos.h> -#include <vespa/vespalib/testkit/testapp.h> -LOG_SETUP("realloc_test"); +#include <vespa/vespalib/testkit/testapp.h> TEST_SETUP(Test); |