~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/pthread_atomics_test.cc

  • Committer: Monty Taylor
  • Date: 2010-10-12 20:20:44 UTC
  • mto: (1842.1.3 build) (1843.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1843.
  • Revision ID: mordred@inaugust.com-20101012202044-yfrmnmkznvkqfxe4
Added support for valgrind suppressions.
Run strip-valgrind as part of make valgrind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
 
107
107
  u235.fetch_and_store(100);
108
108
 
109
 
  ASSERT_FALSE(u235.compare_and_swap(42, 200));
110
 
  ASSERT_TRUE(u235.compare_and_swap(200, 100));
 
109
  EXPECT_EQ(false, u235.compare_and_swap(42, 200));
 
110
  EXPECT_EQ(true, u235.compare_and_swap(200, 100));
111
111
  EXPECT_EQ(200, u235);
112
112
}
113
113