2
0
mirror of https://github.com/boostorg/pool.git synced 2026-01-23 05:42:27 +00:00

77 Commits

Author SHA1 Message Date
Vadim Zavalishin
cd653c7c78 Removed some of the unit tests (those using incorrect partition_sz parameter value) introduced with (#53) 2025-02-25 19:22:34 +00:00
Vadim Zavalishin
fa912abe92 Demonstrate the regressions caused by (#53) (commit 8ec1be1) by unit tests 2025-02-25 19:22:34 +00:00
James E. King III
91f484d9b6 Update CI 2024-11-29 16:25:18 +00:00
Rene Rivera
710fd94411 Update build deps. 2024-11-29 10:03:15 -05:00
Rene Rivera
51c7d9c9ab Change all <source> references to <library>. 2024-11-29 10:03:15 -05:00
Rene Rivera
68153940a8 Make the library modular usable. 2024-11-29 10:03:15 -05:00
Lei Mao
8ec1be1e82 Fix the Broken malloc_n Behavior (#53)
* Fix the Broken `malloc_n` Behavior

* Fix the Broken `malloc_n` Behavior

* Fix the Broken `malloc_n` Behavior

Added Unit Tests

* Fix the Broken `malloc_n` Behavior

Add more unit tests.

* Fix the Broken `malloc_n` Behavior

* Fix the Broken `malloc_n` Behavior

* Fix the Broken `malloc_n` Behavior
2023-01-15 12:23:45 +00:00
James E. King III
3bfd28757d fix test 6702 changes from last CI push 2022-04-16 16:36:26 -04:00
James E. King III
eaee5254ac align with boost-ci 2022.02 and GitHub Actions 2022-04-15 23:51:34 -04:00
Orgad Shaneh
951ca57252 fix integer overflows in pool::ordered_malloc (#42)
Fixes trac #6701 (https://svn.boost.org/trac10/ticket/6701).

Originally-by: Jonathan Wakely <jwakely.boost@kayari.org>
2021-11-03 18:39:23 -07:00
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