diff --git a/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c b/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
index a8400e4541bf2cf2acd8732dca3a31908bf3ef6d..4d70d47aa62a3d534e0c4caa9525c9a77035f9d0 100644
--- a/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
+++ b/runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c
@@ -1,4 +1,4 @@
-// RUN: %libomp-compile-and-run
+// RUN: %libomp-compile -lpthread && %libomp-run
 #include <stdio.h>
 #include "omp_testsuite.h"