mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Remove thread stack size workaround from tests for now
This commit is contained in:
parent
0d3c356984
commit
32dfc0dba0
1 changed files with 1 additions and 26 deletions
|
@ -13,7 +13,7 @@
|
|||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#endif
|
||||
#include <Windows.h> // IsDebuggerPresent, CreateThread
|
||||
#include <Windows.h> // IsDebuggerPresent
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
@ -249,22 +249,6 @@ static void setFastFlags(const std::vector<doctest::String>& flags)
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(_WIN32)
|
||||
struct thrdarg
|
||||
{
|
||||
int* result;
|
||||
doctest::Context* ctx;
|
||||
};
|
||||
|
||||
DWORD WINAPI testthreadproc(LPVOID param)
|
||||
{
|
||||
auto threadresult = ((thrdarg*)param)->result;
|
||||
auto context = ((thrdarg*)param)->ctx;
|
||||
*threadresult = context->run();
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
Luau::assertHandler() = testAssertionHandler;
|
||||
|
@ -343,16 +327,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
}
|
||||
|
||||
#if !defined(_WIN32)
|
||||
int result = context.run();
|
||||
#else
|
||||
int result;
|
||||
thrdarg args;
|
||||
args.result = &result;
|
||||
args.ctx = &context;
|
||||
HANDLE testthread = CreateThread(NULL, 0x400000, testthreadproc, &args, 0, NULL);
|
||||
WaitForSingleObject(testthread, INFINITE);
|
||||
#endif
|
||||
if (doctest::parseFlag(argc, argv, "--help") || doctest::parseFlag(argc, argv, "-h"))
|
||||
{
|
||||
printf("Additional command line options:\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue