Gareth Rees
e749d0c895
Mmqa test function/148.c was fixed by change 187224.
2020-09-04 21:47:05 +01:00
Gareth Rees
b0d0c9a262
Merge branch/2018-08-01/land-insert-steal into the master sources.
...
Copied from Perforce
Change: 194968
2018-08-13 14:42:25 +01:00
Gareth Rees
fffe8af73e
A couple of the tests pass only in the cool variety.
...
Copied from Perforce
Change: 194959
2018-08-13 13:23:18 +01:00
Gareth Rees
1f998c0c8e
Add some test coverage for mps_key_spare, mps_arena_spare, and mps_arena_spare_set.
...
Copied from Perforce
Change: 194945
2018-08-13 10:09:45 +01:00
Gareth Rees
9643a1f090
New land functions landinsertsteal and landdeletesteal and unit test.
...
Use LandInsertSteal instead of arenaFreeLandInsertSteal.
Add regression test for job004102.
Copied from Perforce
Change: 194861
2018-08-02 13:16:15 +01:00
Gareth Rees
4e8de8d42e
Replace deprecatd mv with mvff in test cases.
...
Delete eventrep and replay modules -- these have been broken for a long time.
Copied from Perforce
Change: 194843
2018-08-01 13:10:09 +01:00
Gareth Rees
9290de0dff
Assertion is on the critical path, so conerr/59.c only passes in the cool variety.
...
Copied from Perforce
Change: 194713
2018-07-23 11:14:54 +01:00
Gareth Rees
bc919b5d42
Update mmqa tests to cope with the removal of mv:
...
* Fix typo in argerr/41.c.
* Delete argerr/43.c and argerr/44.c: MVFF doesn't take a maximum size argument so we can't test for erroneous values of this argument.
* Fix assertion condition in conerr/59.c.
* In function/136.c, need to specify extend-by for second pool, now that it's an MVFF pool.
* function/224.c now passes (fragmentation is avoided because MVFF allocations can cross extent boundaries).
Copied from Perforce
Change: 194712
2018-07-23 11:05:31 +01:00
Gareth Rees
b742e99f96
Mmqa tests function/{7,21,22}.c now pass on 32-bit platforms.
...
MMQA tests function/{8,98}.c now pass on 64-bit platforms.
Copied from Perforce
Change: 194599
2018-07-11 16:24:47 +01:00
Gareth Rees
2248184124
Check that traces with no condemned objects can be started and finished without error in each automatic pool class. regression test for job004086.
...
Copied from Perforce
Change: 194475
2018-07-06 14:26:54 +01:00
Gareth Rees
f4ec71167c
Fix issues identified in review https://info.ravenbrook.com/mail/2018/07/03/10-10-11/0/
...
Copied from Perforce
Change: 194382
2018-07-03 13:04:21 +01:00
Gareth Rees
ef265eb175
Fix issues identified in review by dl.
...
Copied from Perforce
Change: 194187
2018-06-26 11:39:45 +01:00
Gareth Rees
40d88a4903
New mmqa test cases check that ams asserts on fixes to unaligned, unallocated, and out-of-bounds objects.
...
Copied from Perforce
Change: 193921
2018-06-18 16:40:10 +01:00
Gareth Rees
0c289d65f3
Awl asserts on fixes to out-of-bounds objects.
...
New MMQA test case conerr/65.c checks this.
Copied from Perforce
Change: 193916
2018-06-18 16:29:03 +01:00
Gareth Rees
e6b6fca1ca
Lo asserts on fixes to out-of-bounds objects.
...
New MMQA test case conerr/64.c checks this.
Copied from Perforce
Change: 193915
2018-06-18 16:22:16 +01:00
Gareth Rees
12da8bf742
Awl asserts on fixes to unallocated objects.
...
New MMQA test case conerr/63.c checks this.
Copied from Perforce
Change: 193910
2018-06-18 15:46:26 +01:00
Gareth Rees
49106b066e
Lo asserts on fixes to unallocated objects.
...
New MMQA test case conerr/62.c checks this.
Copied from Perforce
Change: 193909
2018-06-18 15:41:29 +01:00
Gareth Rees
8e64810d00
Lo asserts on fixes to unaligned exact references.
...
New MMQA test case conerr/60.c checks this.
Copied from Perforce
Change: 193901
2018-06-18 15:05:30 +01:00
Gareth Rees
3c0d28b98a
Correct reason for why function/23.c does not pass.
...
Copied from Perforce
Change: 193881
2018-06-18 13:18:28 +01:00
Gareth Rees
e4bf4451b6
Fix copy-paste error.
...
Copied from Perforce
Change: 193880
2018-06-18 13:18:02 +01:00
Gareth Rees
88ad19e91f
Change 192148 (the fix for job004017) caused the hot variety to compile out assertions on the critical path in manual-allocation-bound programs, which caused various mmqa test cases to fail in the hot variety. move these failing tests to the coolonly testset.
...
Copied from Perforce
Change: 192234
ServerID: perforce.ravenbrook.com
2016-09-08 10:55:59 +01:00
Gareth Rees
bdd7fedb8b
Job003889 was fixed, so conerr/12.c passes.
...
Copied from Perforce
Change: 192207
ServerID: perforce.ravenbrook.com
2016-09-05 23:45:20 +01:00
Gareth Rees
b8ea44a99f
Catch-up merge from master sources to branch/2015-08-11/compact.
...
Copied from Perforce
Change: 190901
ServerID: perforce.ravenbrook.com
2016-04-11 14:40:44 +01:00
Gareth Rees
f1fe190638
Remove mmqa test cases for the reservoir.
...
Copied from Perforce
Change: 190018
ServerID: perforce.ravenbrook.com
2016-03-13 22:44:49 +00:00
Gareth Rees
c2e71054c9
Speed up more mmqa test cases. on my laptop, the whole mmqa test suite (or at least the passing subset) now takes 5 minutes in the hot variety and 11 minutes in the cool variety.
...
Copied from Perforce
Change: 189947
ServerID: perforce.ravenbrook.com
2016-03-13 11:42:32 +00:00
Gareth Rees
df50cf79ce
Some mmqa tests only work in the cool variety. segregate these into the "coolonly" testset.
...
Copied from Perforce
Change: 189711
ServerID: perforce.ravenbrook.com
2016-03-07 17:18:21 +00:00
Richard Brooksby
080d135eec
Catch up merge from master sources.
...
Copied from Perforce
Change: 189088
ServerID: perforce.ravenbrook.com
2016-02-03 16:56:04 +00:00
Richard Brooksby
5dccd2e006
Catch-up merge from masters.
...
Copied from Perforce
Change: 188928
ServerID: perforce.ravenbrook.com
2016-01-20 11:04:09 +00:00
Gareth Rees
f8a402fa0f
New macro arenachunkring encapsulates getting the chunk ring for an arena.
...
RingLength now returns Count, not Size.
New test case checks that chunks are added and removed from the arena as memory is allocated and freed.
Copied from Perforce
Change: 188133
ServerID: perforce.ravenbrook.com
2015-08-11 12:03:45 +01:00
Gareth Rees
e84a0670d7
Test case function/228.c is passing.
...
Copied from Perforce
Change: 188123
ServerID: perforce.ravenbrook.com
2015-08-11 08:35:53 +01:00
Gareth Rees
7dee7f10ea
New test case 231: create/configure arena with too-small commit limit.
...
Copied from Perforce
Change: 188118
ServerID: perforce.ravenbrook.com
2015-08-10 20:29:21 +01:00
Gareth Rees
5960e2fd77
Testsets/conerr now passes.
...
Copied from Perforce
Change: 187950
ServerID: perforce.ravenbrook.com
2015-06-15 22:59:14 +01:00
Gareth Rees
e512989019
Argerr testset now passes.
...
Copied from Perforce
Change: 187948
ServerID: perforce.ravenbrook.com
2015-06-15 22:21:52 +01:00
Gareth Rees
9926492d9a
Add a section to the guide explaining how to implement malloc and free.
...
Copied from Perforce
Change: 187399
ServerID: perforce.ravenbrook.com
2014-10-25 22:31:07 +01:00
Gareth Rees
eced8cbdad
Mmqa test function/227.c now passes.
...
Update test README to mention which function to breakpoint.
Copied from Perforce
Change: 187397
ServerID: perforce.ravenbrook.com
2014-10-25 20:03:44 +01:00
Gareth Rees
c89ce2ba0b
Get the mmqa conerr tests working:
...
* Make sure all the test build and run.
* Add output specifications to the passing tests.
* New testset/conerr runs them all.
Copied from Perforce
Change: 187248
ServerID: perforce.ravenbrook.com
2014-10-13 21:34:12 +01:00
Gareth Rees
6367f5c299
Get the mmqa argerr tests working:
...
* Make sure all the test build and run.
* Add output specifications to the passing tests.
* New testset/argerr runs them all.
Copied from Perforce
Change: 187245
ServerID: perforce.ravenbrook.com
2014-10-13 18:35:11 +01:00
Gareth Rees
42633ca624
Turn off the spare memory on the mvff pool so that it returns freed memory to the arena immediately.
...
Free the initial allocations so that the result determination is accurate.
Copied from Perforce
Change: 187206
ServerID: perforce.ravenbrook.com
2014-10-11 00:57:28 +01:00
Gareth Rees
34c8efce22
Specifying assertcond rather than assertline is likely to be more robust against code changes.
...
Copied from Perforce
Change: 187203
ServerID: perforce.ravenbrook.com
2014-10-10 22:55:48 +01:00
Gareth Rees
18a618cfe1
Need to take spare committed memory into account when checking that memory usage hasn't gone up after a collection.
...
Copied from Perforce
Change: 187202
ServerID: perforce.ravenbrook.com
2014-10-10 22:43:07 +01:00
Gareth Rees
28ceede8dc
Job003495 is fixed, so mmqa test function/171.c now passes.
...
Reduce workload in function/171.c by a factor of 10 so that it completes in a reasonable amount of time.
Copied from Perforce
Change: 187194
ServerID: perforce.ravenbrook.com
2014-10-10 17:35:59 +01:00
Gareth Rees
92fceb127f
Job003739 is fixed, so mmqa test function/51.c passes.
...
Copied from Perforce
Change: 187192
ServerID: perforce.ravenbrook.com
2014-10-10 17:21:36 +01:00
Gareth Rees
1276a299d3
Update the record of passing test cases.
...
Copied from Perforce
Change: 187183
ServerID: perforce.ravenbrook.com
2014-10-10 14:07:13 +01:00
Gareth Rees
05ac242c57
If you try to create a client arena that's too small for the full complement of zones, return mps_res_memory instead of asserting.
...
If you try to create a virtual memory arena that's too small for the full complement of zones, round up the size to the minimum instead of asserting.
Copied from Perforce
Change: 187164
ServerID: perforce.ravenbrook.com
2014-10-08 22:16:56 +01:00
Gareth Rees
97fd4f2d85
Fix many mmqa test cases:
...
* Use commit limit to test exhaustion instead of trying to exhaust virtual memory.
* Use exact roots where possible so that we don't have to worry about local variables pinning down memory.
* Reduce sizes and iterations so that tests complete in a reasonable amount of time.
* Use "MVT" instead of "MV2".
Update the list of passing test cases.
Copied from Perforce
Change: 186035
ServerID: perforce.ravenbrook.com
2014-05-12 17:13:00 +01:00
Gareth Rees
8f9c8f777b
Test cases must call mps_arena_park before mps_chain_destroy.
...
Reduce the amount of work done by some test cases, to make the suite easier to run.
Update the list of passing test cases.
Copied from Perforce
Change: 186030
ServerID: perforce.ravenbrook.com
2014-05-12 15:58:16 +01:00
Gareth Rees
3251845ead
Update passing list and release notes to reflect job003496 fix.
...
Copied from Perforce
Change: 185533
ServerID: perforce.ravenbrook.com
2014-04-15 00:18:29 +01:00
Gareth Rees
474cff250d
Mmqa test case function/46.c now passes; update passing.
...
Copied from Perforce
Change: 185236
ServerID: perforce.ravenbrook.com
2014-04-04 22:00:39 +01:00
Gareth Rees
003a16f3c9
Modernize and fix more test cases:
...
* Missing mps_chain_destroy in function/132.
* Need to use platform alignment in the MVFF test cases (function/163, function/164, function/165, function/167, function/170)
* Avoid type pun in function/226.
Update testsets/passing accordingly.
Copied from Perforce
Change: 182262
ServerID: perforce.ravenbrook.com
2013-05-27 13:38:04 +01:00
Gareth Rees
81a10327c0
Status of mmqa function tests on os x.
...
Copied from Perforce
Change: 182238
ServerID: perforce.ravenbrook.com
2013-05-25 23:05:00 +01:00