tests: Detect test platform dynamically.

In order to run cross-compiled tests under Wine.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia
2017-12-14 11:45:57 +01:00
committed by Alexandre Julliard
parent 006f36c2ac
commit 3956eaf6d0
2 changed files with 48 additions and 19 deletions

View File

@@ -5193,11 +5193,12 @@ static void test_bundle_state_inheritance(void)
unsigned int x, y;
HRESULT hr;
#ifndef _WIN32
/* Avoid 2048 test todos. */
skip("Bundles are not implemented yet.\n");
return;
#endif
if (!vkd3d_test_platform_is_windows())
{
/* Avoid 2048 test todos. */
skip("Bundles are not implemented yet.\n");
return;
}
if (use_warp_device)
{