~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/pthread_atomics_test.cc

  • Committer: Andrew Hutchings
  • Date: 2010-10-27 06:36:38 UTC
  • mto: (1883.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1884.
  • Revision ID: andrew@linuxjedi.co.uk-20101027063638-08d33sknkd691zz2
Fix min() usage for 32bit
Fix Solaris doesn't follow POSIX standard for send()

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