Commit 2e53465
committed
Fix disjoint_pool unit tests
The UMF tests should not use the default system allocator
to allocate memory, because they may not work correctly
under the UMF proxy library when they and the proxy library
are dynamically linked with the same libumf.so file.
In such case the same tracker is used in both:
the test and the proxy library, so there may be conflicts
of memory allocations. An allocation made originally
by the the default system allocator in the test
is first added to the tracker by the proxy library
(which replaced the system allocator) and then the test
itself tries to add the same pointer to the same tracker
in the tracking provider of the pool that had made
this allocation.
Fixes: oneapi-src#240
Signed-off-by: Lukasz Dorau <[email protected]>1 parent d3daaf6 commit 2e53465
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments