Files
Odin/tests/core
Jeroen van Rijn 80d1e1ba82 Allow testing for intentional leaks in test runner
Adds `expect_leak_or_bad_free :: proc(t: ^T, client_test: proc(t: ^T), verifier: Memory_Verifier_Proc)`.

It sets up its own `Tracking_Allocator`, runs the `client_test`, and then calls the `verifier` procedure.
The verifier can then inspect the contents of the tracking allocator and call `testing.expect*` as sensible for the test in question.

Any allocations are then cleared so that the test runner doesn't itself complain about leaks.

Additionally, `ODIN_TEST_LOG_LEVEL_MEMORY` has been added as a define to set the severity of the test runner's memory tracker. You can use `-define:ODIN_TEST_LOG_LEVEL_MEMORY=error` to make tests fail rather than warn if leaks or bad frees have been found.
2024-08-08 20:41:32 +02:00
..
2024-06-12 13:30:00 +02:00
2024-06-02 14:47:08 -04:00
2024-06-02 14:34:31 -04:00
2024-06-15 15:49:05 -04:00
2024-06-15 15:49:05 -04:00
2024-06-09 17:59:59 +02:00
2024-06-26 20:12:55 +02:00
2024-06-30 16:39:22 -04:00
2024-06-02 14:47:09 -04:00
2024-08-08 18:01:09 +02:00
2024-06-29 18:51:28 +01:00
2024-06-02 14:47:09 -04:00
2024-06-02 14:47:09 -04:00
2024-06-02 14:47:09 -04:00
2024-07-26 11:30:48 +02:00
2024-06-02 14:47:09 -04:00
2024-07-25 19:43:42 +02:00
2024-06-08 16:43:45 -04:00
2024-08-03 00:26:46 +02:00