mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-10 19:08:21 +01:00
Fix tests/Gtest-concurrent.c to test all caching policies
Greetings, Attached patch is rather on the obvious side: setting caching policy and than doing nothing is pointless; we'd better acutally test that it works! Tested on Linux/x86_64. Thanks, -- Paul Pluzhnikov
This commit is contained in:
parent
2648a77f04
commit
890a630d76
1 changed files with 2 additions and 0 deletions
|
@ -115,10 +115,12 @@ main (int argc, char **argv)
|
|||
if (verbose)
|
||||
printf ("Caching: global\n");
|
||||
unw_set_caching_policy (unw_local_addr_space, UNW_CACHE_GLOBAL);
|
||||
doit ();
|
||||
|
||||
if (verbose)
|
||||
printf ("Caching: per-thread\n");
|
||||
unw_set_caching_policy (unw_local_addr_space, UNW_CACHE_PER_THREAD);
|
||||
doit ();
|
||||
|
||||
if (nerrors)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue