aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/fish_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fish_tests.cpp')
-rw-r--r--src/fish_tests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp
index dfc34609..5bacab80 100644
--- a/src/fish_tests.cpp
+++ b/src/fish_tests.cpp
@@ -2645,9 +2645,11 @@ static void test_universal()
if (system("mkdir -p /tmp/fish_uvars_test/")) err(L"mkdir failed");
const int threads = 16;
+ static int ctx[threads];
for (int i=0; i < threads; i++)
{
- iothread_perform(test_universal_helper, new int(i));
+ ctx[i] = i;
+ iothread_perform(test_universal_helper, &ctx[i]);
}
iothread_drain_all();