From 515525887fda6957ecbd0a5281a149c8cb545a24 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Fri, 11 May 2018 16:25:53 +0200 Subject: GC unused code --- fastos/src/tests/.gitignore | 4 - fastos/src/tests/CMakeLists.txt | 7 -- fastos/src/tests/prefetchtest.cpp | 153 -------------------------------------- 3 files changed, 164 deletions(-) delete mode 100644 fastos/src/tests/prefetchtest.cpp (limited to 'fastos/src/tests') diff --git a/fastos/src/tests/.gitignore b/fastos/src/tests/.gitignore index 2af862d201e..ccb5f0210ab 100644 --- a/fastos/src/tests/.gitignore +++ b/fastos/src/tests/.gitignore @@ -3,10 +3,6 @@ /backtracetest.log /filetest /filetest.log -/gmtime -/gmtime.log -/prefetchtest -/prefetchtest.log /processtest /processtest.log /sockettest diff --git a/fastos/src/tests/CMakeLists.txt b/fastos/src/tests/CMakeLists.txt index 6166e4273e6..0a1eddf5262 100644 --- a/fastos/src/tests/CMakeLists.txt +++ b/fastos/src/tests/CMakeLists.txt @@ -5,13 +5,6 @@ vespa_add_executable(fastos_processtest_app TEST DEPENDS fastos ) -vespa_add_executable(fastos_prefetchtest_app TEST - SOURCES - prefetchtest.cpp - DEPENDS - fastos -) -vespa_add_test(NAME fastos_prefetchtest_app NO_VALGRIND COMMAND fastos_prefetchtest_app) vespa_add_executable(fastos_filetest_app TEST SOURCES filetest.cpp diff --git a/fastos/src/tests/prefetchtest.cpp b/fastos/src/tests/prefetchtest.cpp deleted file mode 100644 index fba57e4048f..00000000000 --- a/fastos/src/tests/prefetchtest.cpp +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -/* - * FastOS_Prefetch test program. - * - * Author: Olaf Birkeland - */ - -#include "tests.h" -#include -#include - -class PrefetchTestApp : public BaseTest -{ -public: - virtual ~PrefetchTestApp() {} - - bool PrefetchTest () - { - bool rc = false; - int j, size, *a; - int or1, or2; - FastOS_Time start, stop; - double timeVal; - - TestHeader("Prefetch Test"); - - // 32MB - size = 32; - size *= 1024*1024/sizeof(*a); - - if ((a = static_cast(calloc(size, sizeof(*a)))) != nullptr) - { - // Standard loop - start.SetNow(); - or1 = 1; - for(j=0; j