summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/tests/librarypool/librarypool_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'staging_vespalib/src/tests/librarypool/librarypool_test.cpp')
-rw-r--r--staging_vespalib/src/tests/librarypool/librarypool_test.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/staging_vespalib/src/tests/librarypool/librarypool_test.cpp b/staging_vespalib/src/tests/librarypool/librarypool_test.cpp
deleted file mode 100644
index adefdf3aa6b..00000000000
--- a/staging_vespalib/src/tests/librarypool/librarypool_test.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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/util/librarypool.h>
-#include <vespa/vespalib/util/exceptions.h>
-
-using namespace vespalib;
-
-class Test : public TestApp
-{
-public:
- int Main() override;
-};
-
-int
-Test::Main()
-{
- TEST_INIT("librarypool_test");
- LibraryPool p;
- ASSERT_TRUE(p.get("z") == NULL);
- p.loadLibrary("z");
- ASSERT_TRUE(p.get("z") != NULL);
- ASSERT_TRUE(p.get("z")->GetSymbol("some_symbol_that_is_not_there") == NULL);
- ASSERT_TRUE(p.get("z")->GetSymbol("compress") != NULL);
- try {
- p.loadLibrary("not_found");
- ASSERT_TRUE(false);
- } catch (const IllegalArgumentException & e) {
- ASSERT_TRUE(p.get("not_found") == NULL);
- }
- {
- const LibraryPool & c(p);
- ASSERT_TRUE(c.get("z") != NULL);
- ASSERT_TRUE(c.get("not_found") == NULL);
- }
- TEST_DONE();
-}
-
-TEST_APPHOOK(Test)