Commit Graph

67 Commits

Author SHA1 Message Date
James E. King III
a25d87ffbb Fix misalignment issue in simple_seg_storage test. 2018-10-30 08:07:11 -04:00
Glen Fernandes
37b504b336 Fix unit tests that did not return report_errors() 2018-09-17 07:08:09 -04:00
James E. King III
dc723ad8bc Added CI framework
- travis with valgrind, cppcheck, ubsan, codecov, covscan (future)
  - appveyor with MSVC 2010 through 2017, cygwin 32/64, mingw 32/64
  - README, LICENSE, etc.
2018-05-19 01:12:18 +00:00
Peter Dimov
834b61455c Merge branch 'do-not-use-test-rules-to-check-for-valgrind' of https://github.com/Kojoley/pool into feature/pull-18 2017-11-28 03:32:19 +02:00
Peter Dimov
6e0ba40196 Disable warnings 4127, 4267; fix typo; reduce number of iterations 2017-11-28 02:34:30 +02:00
Peter Dimov
a58311b761 Disable warning 4127 2017-11-28 02:10:20 +02:00
Nikita Kniazev
12e5fadc31 Do not use test rules to check for valgrind
Passing a test rule to `check-target-builds` affects `--dump-tests` output,
some tests disappears what causes the missing tests in regression matrix.

This was discovered at modularizing Spirit tests (tests under `build-project`
dirs runs, but do not appear in `--dump-tests` output)
2017-11-26 23:18:22 +03:00
Daniela Engert
252c660e16 Fix compilation errors due to missing include <iostream>. 2017-05-13 13:11:42 +02:00
Edward Diener
1c302dbff3 Implement own random_shuffle for tests in place of deprecated std::random_shuffle 2016-11-08 20:52:11 -05:00
Marshall Clow
f21f51aa1d Fix comments in tests to refer to the correct bugs. No functional change 2016-07-30 11:10:42 -07:00
Kohei Takahashi
79b7b0ca67 Do not use std::auto_ptr.
Use boost::scoped_ptr instead in this use case.
2016-07-30 17:22:44 +09:00
akumta
7240ef2319 Update test_bug_5526.cpp
For ticket# 10962.
2015-02-25 10:26:51 -08:00
Peter Dimov
de05d62aea Replace math::gcd,lcm with integer. 2015-01-15 19:05:08 +02:00
Peter Dimov
397536bb4b Make tests work again. 2015-01-15 18:54:22 +02:00
Noel Belcourt
0902bbeed0 Merge pull request #3 from MarcelRaad/patch-1
Fix tests for MSVC

I don't have access to Windows machine but this patch looks okay.
2014-07-09 11:22:16 -06:00
jzmaddock
e5ec99db02 Update test_poisoned_macros.cpp
Current test fails inside /boost/core/demangle.hpp: not sure why that header is even included, but anyway this fix solves the issue while preserving the intent of the test.
2014-07-09 18:17:27 +01:00
Marcel Raad
fa3005209c Fix tests for MSVC
warnings-as-errors caused the simple_seg_storage and threading tests to fail on all Visual C++ compilers. This define suppresses the warnings about unchecked iterators, which I don't think are solvable in a portable way.
2014-07-03 19:07:19 +02:00
BenPope
e4852e2294 Add dependency on boost_system 2014-04-02 00:25:14 +08:00
Steven Watanabe
5c15843ca9 Name the valgrind test so it doesn't overflow the output field width.
[SVN r83784]
2013-04-06 22:27:57 +00:00
John Maddock
892481b63d Turn on threading support for threaded test!
Disable warning-as-errors for Intel compiler (it's too strict for Intel-10).
Make test allocators std-conforming.

[SVN r73302]
2011-07-22 17:38:38 +00:00
John Maddock
9038969ce2 Correct test case to take account of sizeof(void*).
[SVN r73272]
2011-07-21 10:02:15 +00:00
John Maddock
f08364c169 Fix C++0x failure.
Try and suppress pathscale failure.

[SVN r73241]
2011-07-19 11:52:11 +00:00
John Maddock
5adeed0d8b Make test code independent of sizeof(void*).
Make test stricter in it's checking (how much memory the allocator will allocate).

[SVN r73240]
2011-07-19 10:39:32 +00:00
John Maddock
9ec4a0b5e1 Merge updated Boost.Pool from sandbox.
[SVN r73210]
2011-07-18 10:23:42 +00:00
John Maddock
de02dd1144 Add newline to end of file.
[SVN r73194]
2011-07-17 18:05:51 +00:00
John Maddock
6ac72d21de Fix some more compiler warnings.
Add threading stress test.

[SVN r73193]
2011-07-17 17:56:58 +00:00
John Maddock
1cb917c9a7 Update docs to latest AutoIndex version.
Fix -Wshadow warnings and update Jamfile to make them errors.
Fix singleton_pool to correctly propagate the MaxSize parameter.
Refs #5700.
Refs #5568.

[SVN r73148]
2011-07-16 14:50:06 +00:00
John Maddock
c7b0d00943 Add some debugging code.
Add tentative Valgrind support.
Change singleton usage to address issue 5526 by making singletons eternal.
Add Valgrind tests.
Update docs to match.
Refs #5526.

[SVN r73121]
2011-07-15 17:40:49 +00:00
John Maddock
48398032be Change mutex to use Boost version.
Add example to test Jamfile.

[SVN r71204]
2011-04-12 16:15:14 +00:00
John Maddock
9d2945f374 Change to Boost.Math gcd/lcm and fix tests to compile cleanly again!
[SVN r71188]
2011-04-11 17:19:16 +00:00
John Maddock
da804b6c96 Add test for malloc/free macros.
[SVN r69528]
2011-03-03 18:49:54 +00:00
John Maddock
c1dd8eaadf Fix typo in test/test_bug_4960.cpp
Add valgrind tests only if available.

[SVN r69445]
2011-03-01 18:11:23 +00:00
John Maddock
6db4e1896a Some further more advanced fixes for issue #2696:
Applies existing fix to array allocation,
Adds a test case,
Adds a fallback mechanism, so that if allocation fails we shrink the next chunk size.
Refs #2696.


[SVN r69236]
2011-02-24 12:19:47 +00:00
John Maddock
7a37b780dc Fixes issue #1252.
Add test case for #1252.
Update docs accordingly.
Refs #1252.
Correct return value from test_pool_alloc.cpp.


[SVN r69235]
2011-02-24 10:25:39 +00:00
John Maddock
c519bdec56 Add test case for issue #1252.
Refs #1252.

[SVN r68922]
2011-02-15 19:03:00 +00:00
John Maddock
d6702122e0 Add test case for bug #4960.
Add conditional instrumentation code to headers so we can see what's being allocated when.
Fix issue #4960 by allowing pool to allocate 0 chunks.
Refs #4960.

[SVN r68920]
2011-02-15 18:39:07 +00:00
John Maddock
9a752f0876 Oops, committed wrong Jamfile version, fixed now.
[SVN r68868]
2011-02-14 18:26:42 +00:00
John Maddock
e5ceadf03d Enable highest warning levels in compiles, and fix resulting errors.
[SVN r68867]
2011-02-14 18:04:20 +00:00
Katie Chan
8c5bd739d4 Change from simple use of std::rand() to use Boost.Random and specify a reasonable range so we don't run out of memory. Other general tidy up.
[SVN r67747]
2011-01-07 05:21:51 +00:00
Katie Chan
dbc4bc56e0 Make test compile on GCC.
[SVN r67746]
2011-01-07 03:10:04 +00:00
Katie Chan
3e1baa4a24 Fixes bug #3349. Add temporary test for bug.
[SVN r67676]
2011-01-05 09:00:14 +00:00
Katie Chan
3fca7ced6e Move performance test to example directory
[SVN r67674]
2011-01-05 07:59:36 +00:00
Katie Chan
ec838ef75e Add test for simple_segregated_storage.
[SVN r67673]
2011-01-05 07:51:32 +00:00
Katie Chan
cf75eeb25e Shorten test file name to conform to Boost Library Requirements and Guidelines
[SVN r67671]
2011-01-05 07:35:21 +00:00
Katie Chan
82096915d4 Test for GCD & LCM functions. Though should probably refactor code to use Boost.Math (which was branched out from Boost.Pool itself & Boost.Rational) instead.
[SVN r67653]
2011-01-04 17:46:12 +00:00
Katie Chan
b03190f897 Add test for bug #4346.
[SVN r67591]
2011-01-02 20:26:28 +00:00
Katie Chan
ac1771913e Update test to use BOOST_TEST() instead of if/cout.
[SVN r67589]
2011-01-02 20:24:59 +00:00
Steven Watanabe
4f207d5041 Simplify the Jamfile
[SVN r67557]
2011-01-02 00:03:42 +00:00
John Maddock
bd2ed68e30 Initial commit of Boost.Pool copy
[SVN r67513]
2010-12-31 10:10:24 +00:00
Steven Watanabe
df50a4065f Protect Boost.Pool from evil #defines of malloc and free. Fixes #4346.
[SVN r63009]
2010-06-16 02:27:17 +00:00