Fuck those unit-tests on wine.
This commit is contained in:
parent
5710f30376
commit
f46f5590ff
@ -157,6 +157,8 @@ namespace Components
|
||||
}).detach();
|
||||
});
|
||||
|
||||
if (!Utils::IsWineEnvironment())
|
||||
{
|
||||
News::Terminate = false;
|
||||
News::Thread = std::thread([] ()
|
||||
{
|
||||
@ -184,6 +186,7 @@ namespace Components
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
News::~News()
|
||||
{
|
||||
|
@ -35,4 +35,11 @@ namespace Utils
|
||||
|
||||
LocalFree(messageBuffer);
|
||||
}
|
||||
|
||||
bool IsWineEnvironment()
|
||||
{
|
||||
HMODULE hntdll = GetModuleHandleA("ntdll.dll");
|
||||
if (!hntdll) return false;
|
||||
return (GetProcAddress(hntdll, "wine_get_version") != nullptr);
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,8 @@ namespace Utils
|
||||
std::string ParseChallenge(std::string data);
|
||||
void OutputDebugLastError();
|
||||
|
||||
bool IsWineEnvironment();
|
||||
|
||||
template <typename T> void Merge(std::vector<T>* target, T* source, size_t length)
|
||||
{
|
||||
if (source)
|
||||
|
Loading…
Reference in New Issue
Block a user