~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/atomics_test.cc

  • Committer: Monty Taylor
  • Date: 2010-10-19 21:58:26 UTC
  • mfrom: (1861.3.7 ld-version-script)
  • mto: This revision was merged to the branch mainline in revision 1863.
  • Revision ID: mordred@inaugust.com-20101019215826-ofh15co6vp47vndb
Merge Monty - Fixed the valgrind errors, made it so that haildb works in trunk with no extra magic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
  u235.fetch_and_store(100);
80
80
 
81
 
  ASSERT_FALSE(u235.compare_and_swap(42, 200));
82
 
  ASSERT_TRUE(u235.compare_and_swap(200, 100));
 
81
  EXPECT_EQ(false, u235.compare_and_swap(42, 200));
 
82
  EXPECT_EQ(true, u235.compare_and_swap(200, 100));
83
83
  EXPECT_EQ(200, u235);
84
84
}
85
85