Skip to content

Commit e7d005b

Browse files
committed
fix c++ test
1 parent 81b8cb5 commit e7d005b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/tests.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
#include <memory>
55
#include <array>
6+
#if THREAD_SUPPORT
67
#include <thread>
8+
#endif
79
#include "iso_alloc.h"
810
#include "iso_alloc_internal.h"
911

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

124+
#if THREAD_SUPPORT
122125
for(size_t i = 0; i < 4; i++) {
123126
std::array<std::thread, 4> t;
124127
for(size_t z = 0; z < 4; z++) {
125128
t[i] = std::thread(allocate, array_sizes[i], allocation_sizes[z]);
126129
t[i].join();
127130
}
128131
}
132+
#endif
129133

130134
iso_verify_zones();
131135

0 commit comments

Comments
 (0)