Commit 0f98972f authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp/tests: Add tests for SymRefreshModuleList() on non-live target.

parent aabb4e12
......@@ -424,6 +424,9 @@ static BOOL test_modules(void)
ret = SymInitialize(dummy, NULL, FALSE);
ok(ret, "got error %lu\n", GetLastError());
ret = SymRefreshModuleList(dummy);
ok(!ret, "SymRefreshModuleList should have failed\n");
count = get_module_count(dummy);
ok(count == 0, "Unexpected count (%u instead of 0)\n", count);
......@@ -731,6 +734,10 @@ static void test_loaded_modules(void)
}
}
ret = SymRefreshModuleList(pi.hProcess);
todo_wine_if(get_process_kind(pi.hProcess) == PCSKIND_WOW64)
ok(ret || broken(GetLastError() == STATUS_PARTIAL_COPY /* Win11 in some cases */), "SymRefreshModuleList failed: %lu\n", GetLastError());
SymCleanup(pi.hProcess);
TerminateProcess(pi.hProcess, 0);
......@@ -766,6 +773,9 @@ static void test_loaded_modules(void)
"Wrong directory aggregation count %u %u\n",
aggregation.count_systemdir, aggregation.count_wowdir);
ret = SymRefreshModuleList(pi.hProcess);
ok(ret, "SymRefreshModuleList failed: %lu\n", GetLastError());
SymCleanup(pi.hProcess);
TerminateProcess(pi.hProcess, 0);
}
......@@ -804,6 +814,9 @@ static void test_loaded_modules(void)
"Wrong directory aggregation count %u %u\n",
aggregation2.count_systemdir, aggregation2.count_wowdir);
ret = SymRefreshModuleList(pi.hProcess);
ok(ret, "SymRefreshModuleList failed: %lu\n", GetLastError());
SymCleanup(pi.hProcess);
TerminateProcess(pi.hProcess, 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment