aboutsummaryrefslogtreecommitdiff
path: root/c/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/test.cpp')
-rw-r--r--c/test.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/c/test.cpp b/c/test.cpp
index 5bd8958..d784367 100644
--- a/c/test.cpp
+++ b/c/test.cpp
@@ -1,3 +1,4 @@
+#include <thread>
#include <windows.h>
#include "data.h"
@@ -224,12 +225,8 @@ TESTS
TEST(Fetch)
{
- extern FileView<ElvDataA> g_fvElv;
- extern FileView<DlvDataA> g_fvDlv;
- void FetchData(FileView<ElvDataA>& fvElv, FileView<DlvDataA>& fvDlv);
- //FileView<ElvDataA> fvElv{L"testelv.dat", 1080};
- //FileView<DlvDataA> fvDlv{L"testdlv.dat", 1080};
- FetchData(g_fvElv, g_fvDlv);
+ bool bDone = false;
+ std::thread{FetchData, &bDone}.detach();
}
};
@@ -245,7 +242,7 @@ int RunTests()
//MigrateCfg{}
//MigrateDlvDataFromPrologToDisk{},
//DownloadDataViaProlog{},
- Fetch{},
+ //Fetch{},
};
printf("Results (%llu tests):\n", sizeof(tests)/sizeof(*tests));