~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/pthread_atomics_test.cc

  • Committer: Brian Aker
  • Date: 2010-09-13 21:43:18 UTC
  • mto: (1768.2.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 1770.
  • Revision ID: brian@tangent.org-20100913214318-b5tdvn64qvtvybnj
Use full path for opening up directory files when checking for types.

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