diff options
Diffstat (limited to 'staging_vespalib/src/tests/cpu/cpu_test.cpp')
-rw-r--r-- | staging_vespalib/src/tests/cpu/cpu_test.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/staging_vespalib/src/tests/cpu/cpu_test.cpp b/staging_vespalib/src/tests/cpu/cpu_test.cpp deleted file mode 100644 index 56f109e47a4..00000000000 --- a/staging_vespalib/src/tests/cpu/cpu_test.cpp +++ /dev/null @@ -1,33 +0,0 @@ -// 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("cpu_test"); -#include <vespa/vespalib/testkit/testapp.h> -#include <vespa/vespalib/util/cpu.h> - -using namespace vespalib; - -class Test : public vespalib::TestApp -{ -public: - int Main(); -}; - -int Test::Main() -{ - TEST_INIT("cpu_test"); - - const X86CpuInfo & cpu = X86CpuInfo::cpuInfo(); - EXPECT_TRUE(cpu.hasMMX()); - EXPECT_TRUE(cpu.hasSSE()); - EXPECT_TRUE(cpu.hasSSE2()); - EXPECT_TRUE(cpu.hasSSE3()); - EXPECT_TRUE(cpu.hasCX16()); - - X86CpuInfo::print(stdout); - - TEST_FLUSH(); - TEST_DONE(); -} - -TEST_APPHOOK(Test) |