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:
parent
fef92bacc5
commit
535cf25f46
|
@ -50,7 +50,7 @@ static void test_engine_options(void)
|
||||||
ok(hr == S_OK, "Failed to get engine options, hr %#x.\n", hr);
|
ok(hr == S_OK, "Failed to get engine options, hr %#x.\n", hr);
|
||||||
ok(options == DEBUG_ENGOPT_INITIAL_BREAK, "Unexpected options %#x.\n", options);
|
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);
|
ok(hr == E_INVALIDARG, "Unexpected hr %#x.\n", hr);
|
||||||
|
|
||||||
options = 0;
|
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(hr == S_OK, "Failed to get engine options, hr %#x.\n", hr);
|
||||||
ok(options == DEBUG_ENGOPT_INITIAL_BREAK, "Unexpected options %#x.\n", options);
|
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);
|
ok(hr == S_OK, "Failed to remove options, hr %#x.\n", hr);
|
||||||
|
|
||||||
hr = control->lpVtbl->AddEngineOptions(control, DEBUG_ENGOPT_IGNORE_DBGHELP_VERSION);
|
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(hr == S_OK, "Failed to get engine options, hr %#x.\n", hr);
|
||||||
ok(options == DEBUG_ENGOPT_INITIAL_BREAK, "Unexpected options %#x.\n", options);
|
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);
|
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);
|
ok(hr == E_INVALIDARG, "Unexpected hr %#x.\n", hr);
|
||||||
|
|
||||||
options = 0;
|
options = 0;
|
||||||
|
|
Loading…
Reference in New Issue