dbgeng/tests: Use different flags for unsupported options.

Fixes test failures on recent Windows 10 builds, where 0x00800000 option is acceptable.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-10-11 09:33:08 +03:00 committed by Alexandre Julliard
parent fef92bacc5
commit 535cf25f46
1 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ static void test_engine_options(void)
ok(hr == S_OK, "Failed to get engine options, hr %#x.\n", hr);
ok(options == DEBUG_ENGOPT_INITIAL_BREAK, "Unexpected options %#x.\n", options);
hr = control->lpVtbl->AddEngineOptions(control, 0x00800000);
hr = control->lpVtbl->AddEngineOptions(control, 0x01000000);
ok(hr == E_INVALIDARG, "Unexpected hr %#x.\n", hr);
options = 0;
@ -58,7 +58,7 @@ static void test_engine_options(void)
ok(hr == S_OK, "Failed to get engine options, hr %#x.\n", hr);
ok(options == DEBUG_ENGOPT_INITIAL_BREAK, "Unexpected options %#x.\n", options);
hr = control->lpVtbl->RemoveEngineOptions(control, 0x00800000);
hr = control->lpVtbl->RemoveEngineOptions(control, 0x01000000);
ok(hr == S_OK, "Failed to remove options, hr %#x.\n", hr);
hr = control->lpVtbl->AddEngineOptions(control, DEBUG_ENGOPT_IGNORE_DBGHELP_VERSION);
@ -86,10 +86,10 @@ static void test_engine_options(void)
ok(hr == S_OK, "Failed to get engine options, hr %#x.\n", hr);
ok(options == DEBUG_ENGOPT_INITIAL_BREAK, "Unexpected options %#x.\n", options);
hr = control->lpVtbl->SetEngineOptions(control, 0x00800000);
hr = control->lpVtbl->SetEngineOptions(control, 0x01000000);
ok(hr == E_INVALIDARG, "Unexpected hr %#x.\n", hr);
hr = control->lpVtbl->SetEngineOptions(control, 0x00800000 | DEBUG_ENGOPT_IGNORE_DBGHELP_VERSION);
hr = control->lpVtbl->SetEngineOptions(control, 0x01000000 | DEBUG_ENGOPT_IGNORE_DBGHELP_VERSION);
ok(hr == E_INVALIDARG, "Unexpected hr %#x.\n", hr);
options = 0;