From 890a630d76ca4af8cb9758e3c74d00897dbcb544 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Fri, 20 Nov 2009 13:23:46 -0800 Subject: [PATCH] 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 --- tests/Gtest-concurrent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Gtest-concurrent.c b/tests/Gtest-concurrent.c index 8166fc59..126acedd 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) {