Skip to content

Commit

Permalink
fix c++ test
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Dec 21, 2023
1 parent 81b8cb5 commit e7d005b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

#include <memory>
#include <array>
#if THREAD_SUPPORT
#include <thread>
#endif
#include "iso_alloc.h"
#include "iso_alloc_internal.h"

Expand Down Expand Up @@ -119,13 +121,15 @@ int main(int argc, char *argv[]) {
Derived::operator delete(d, ptr);
}

#if THREAD_SUPPORT
for(size_t i = 0; i < 4; i++) {
std::array<std::thread, 4> t;
for(size_t z = 0; z < 4; z++) {
t[i] = std::thread(allocate, array_sizes[i], allocation_sizes[z]);
t[i].join();
}
}
#endif

iso_verify_zones();

Expand Down

0 comments on commit e7d005b

Please sign in to comment.