diff options
author | Morgan Deters <mdeters@gmail.com> | 2010-09-30 21:39:14 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2010-09-30 21:39:14 +0000 |
commit | d0b49d588033ab8140bdf297c9cdf73b1088fe68 (patch) | |
tree | 991a27d038a10d81805f7f02e10f8c78d68579dd /test/unit/context/cdlist_black.h | |
parent | 1c2b7c593fa1c12575eb37e56a5c66a1a190ad81 (diff) |
fixed a number of problems with mac os x builds. build now works on mac os x if you disable the clock_gettime check in configure.ac (resolves bug #202), but the parser is broken (new bug #208)
Diffstat (limited to 'test/unit/context/cdlist_black.h')
-rw-r--r-- | test/unit/context/cdlist_black.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/unit/context/cdlist_black.h b/test/unit/context/cdlist_black.h index 299e11dee..aa25ba9eb 100644 --- a/test/unit/context/cdlist_black.h +++ b/test/unit/context/cdlist_black.h @@ -133,9 +133,16 @@ public: TS_ASSERT_EQUALS(aThirdFalse, false); } + /* setrlimit() totally broken on Mac OS X */ void testOutOfMemory() { +#ifdef __APPLE__ + + TS_WARN("can't run memory tests on Mac OS X"); + +#else /* __APPLE__ */ + CDList<unsigned> list(d_context); - WithLimitedMemory wlm(0); + WithLimitedMemory wlm(1); TS_ASSERT_THROWS({ // We cap it at UINT_MAX, preferring to terminate with a @@ -144,5 +151,7 @@ public: list.push_back(i); } }, bad_alloc); + +#endif /* __APPLE__ */ } }; |