libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [patch] Fix tests/Gtest-concurrent.c to test all cachi


From: Paul Pluzhnikov
Subject: [Libunwind-devel] [patch] Fix tests/Gtest-concurrent.c to test all caching policies
Date: Fri, 20 Nov 2009 13:23:46 -0800 (PST)

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


diff --git a/tests/Gtest-concurrent.c b/tests/Gtest-concurrent.c
index 8166fc5..126aced 100644
--- a/tests/Gtest-concurrent.c
+++ b/tests/Gtest-concurrent.c
@@ -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)
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]