summaryrefslogtreecommitdiff
path: root/unittest/mysys
diff options
context:
space:
mode:
authorunknown <serg@janus.mylan>2008-02-13 18:25:56 +0100
committerunknown <serg@janus.mylan>2008-02-13 18:25:56 +0100
commitbee40ef1d0756c2dc05c6ce75774b972a78410e9 (patch)
tree253c09616d11a8775843ea6100977feb3791c02d /unittest/mysys
parentcbaf350bcbaaa1246bc8e53c802ba2232a3dd4ac (diff)
downloadmariadb-git-bee40ef1d0756c2dc05c6ce75774b972a78410e9.tar.gz
build/test failures on different platforms
include/atomic/rwlock.h: define MY_ATOMIC_MODE_RWLOCKS if this is the way we have to go mysys/lf_alloc-pin.c: no semicolon mysys/lf_hash.c: no semicolon storage/maria/lockman.c: no semicolon storage/maria/ma_loghandler.c: no semicolon unittest/mysys/my_atomic-t.c: powerpc is no better (condition could be a bit too broad, but hey, it's just a unit test)
Diffstat (limited to 'unittest/mysys')
-rw-r--r--unittest/mysys/my_atomic-t.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/unittest/mysys/my_atomic-t.c b/unittest/mysys/my_atomic-t.c
index a5fa4c1bfe8..48476551ba8 100644
--- a/unittest/mysys/my_atomic-t.c
+++ b/unittest/mysys/my_atomic-t.c
@@ -313,18 +313,14 @@ int main()
#ifdef MY_ATOMIC_MODE_RWLOCKS
-#ifdef HPUX11 /* showed to be very slow (scheduler-related) */
+#if defined(HPUX11) || defined(__POWERPC__) /* showed to be very slow (scheduler-related) */
#define CYCLES 300
#else
#define CYCLES 3000
#endif
#else
-#ifdef HPUX11
-#define CYCLES 30000
-#else
#define CYCLES 300000
#endif
-#endif
#define THREADS 100
test_atomic("my_atomic_add32", test_atomic_add_handler, THREADS,CYCLES);