~ubuntu-branches/ubuntu/raring/mysql-5.5/raring-proposed

« back to all changes in this revision

Viewing changes to unittest/mysys/my_atomic-t.c

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
  test_concurrently("my_atomic_cas32", test_atomic_cas, THREADS, CYCLES);
165
165
 
166
166
  {
167
 
    int64 b=0x1000200030004000LL;
 
167
    /*
 
168
      If b is not volatile, the wrong assembly code is generated on OSX Lion
 
169
      as the variable is optimized away as a constant.
 
170
      See Bug#62533 / Bug#13030056.
 
171
      Another workaround is to specify architecture explicitly using e.g.
 
172
      CFLAGS/CXXFLAGS= "-m64".
 
173
    */
 
174
    volatile int64 b=0x1000200030004000LL;
168
175
    a64=0;
169
176
    my_atomic_add64(&a64, b);
170
177
    ok(a64==b, "add64");