Fix all of the tests.

This commit is contained in:
David Chisnall
2019-07-05 13:24:28 +01:00
parent 50695d07f8
commit 14b5c57b55
4 changed files with 11 additions and 11 deletions

View File

@@ -100,7 +100,7 @@ void test_tasks_f(size_t id)
void test_tasks(size_t num_tasks, size_t count, size_t size)
{
Alloc* a = ThreadAlloc::get();
Alloc*& a = ThreadAlloc::get();
contention = new std::atomic<size_t*>[size];
xoroshiro::p128r32 r;

View File

@@ -43,7 +43,7 @@ namespace test
void test_external_pointer(xoroshiro::p128r64& r)
{
auto* alloc = ThreadAlloc::get();
auto& alloc = ThreadAlloc::get();
setup(r, alloc);