aboutsummaryrefslogtreecommitdiff
path: root/c/test.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-08-21 02:04:15 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-08-21 02:04:15 +0200
commit07bde9f8575701bd0db60baf71aca2465361ff64 (patch)
tree4660c1311b9ea9a14b31fa61f67f878857d80ee9 /c/test.cpp
parentb9573a485baf98e9fb749289b8b9c1f73f70d280 (diff)
downloadEpisodeBrowser-07bde9f8575701bd0db60baf71aca2465361ff64.tar.gz
Reimplement WaitFor.
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));