<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56834>56834</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [openmp] Test fail: `tasking/hidden_helper_task/gtid.cpp` on 15.0.0-rc1 macOS
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            openmp
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          tru
      </td>
    </tr>
</table>

<pre>
    ```
FAIL: libomp :: tasking/hidden_helper_task/gtid.cpp (61 of 299)
******************** TEST 'libomp :: tasking/hidden_helper_task/gtid.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1';   /Users/tobias/code/llvm-project/build/./bin/clang++ -fopenmp  -fno-experimental-isel  -I /Users/tobias/code/llvm-project/build/projects/openmp/runtime/src -I /Users/tobias/code/llvm-project/openmp/runtime/test -L /Users/tobias/code/llvm-project/build/lib  -fno-omit-frame-pointer -Wl,-rpath,/Users/tobias/code/llvm-project/build/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I /Users/tobias/code/llvm-project/openmp/runtime/test/ompt -std=c++14 /Users/tobias/code/llvm-project/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp -o /Users/tobias/code/llvm-project/build/projects/openmp/runtime/test/tasking/hidden_helper_task/Output/gtid.cpp.tmp -lm && /Users/tobias/code/llvm-project/build/projects/openmp/runtime/test/tasking/hidden_helper_task/Output/gtid.cpp.tmp
: 'RUN: at line 2';   /Users/tobias/code/llvm-project/build/./bin/clang++ -fopenmp  -fno-experimental-isel  -I /Users/tobias/code/llvm-project/build/projects/openmp/runtime/src -I /Users/tobias/code/llvm-project/openmp/runtime/test -L /Users/tobias/code/llvm-project/build/lib  -fno-omit-frame-pointer -Wl,-rpath,/Users/tobias/code/llvm-project/build/lib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I /Users/tobias/code/llvm-project/openmp/runtime/test/ompt -std=c++14 /Users/tobias/code/llvm-project/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp -o /Users/tobias/code/llvm-project/build/projects/openmp/runtime/test/tasking/hidden_helper_task/Output/gtid.cpp.tmp -lm && env OMP_NUM_THREADS=1 /Users/tobias/code/llvm-project/build/projects/openmp/runtime/test/tasking/hidden_helper_task/Output/gtid.cpp.tmp
--
Exit Code: -6

Command Output (stdout):
--
$ ":" "RUN: at line 1"
$ "/Users/tobias/code/llvm-project/build/./bin/clang++" "-fopenmp" "-fno-experimental-isel" "-I" "/Users/tobias/code/llvm-project/build/projects/openmp/runtime/src" "-I" "/Users/tobias/code/llvm-project/openmp/runtime/test" "-L" "/Users/tobias/code/llvm-project/build/lib" "-fno-omit-frame-pointer" "-Wl,-rpath,/Users/tobias/code/llvm-project/build/lib" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" "-I" "/Users/tobias/code/llvm-project/openmp/runtime/test/ompt" "-std=c++14" "/Users/tobias/code/llvm-project/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp" "-o" "/Users/tobias/code/llvm-project/build/projects/openmp/runtime/test/tasking/hidden_helper_task/Output/gtid.cpp.tmp" "-lm"
# command stderr:
ld: warning: dylib (/Users/tobias/code/llvm-project/build/lib/libomp.dylib) was built for newer macOS version (11.6) than being linked (11.0)

$ "/Users/tobias/code/llvm-project/build/projects/openmp/runtime/test/tasking/hidden_helper_task/Output/gtid.cpp.tmp"
# command stderr:
Assertion failed: (v > 0 && v <=Assertion failed: (v == 0 || v >Assertion failed: (v == 0 || v > __kmp_hidden_helper_threads_num __kmp_hidden_helper_threads_numAssertion failed: (v > 0 && v <=Assertion failed: (v > 0 && v <=), function assert_gtid, file gtAssertion failed: (v == 0 || v >id.cpp, line 59.
Assertion failed: (v == 0 || v > __kmp_hidden_helper_threads_numAssertion failed: (v == 0 || v > __kmp_hidden_helper_threads_num __kmp_hidden_helper_threads_num), function assert_gtid, file gt __kmp_hidden_helper_threads_num __kmp_hidden_helper_threads_num), function assert_gtid, file gtAssertion failed: (v > 0 && v <=), function assert_gtid, file gtAssertion failed: (v == 0 || v >id.cpp, line 57.
 __kmp_hidden_helper_threads_numid.cpp, line 59.
), function assert_gtid, file gtAssertion failed: (v == 0 || v >id.cpp, line 59.
 __kmp_hidden_helper_threads_num), function assert_gtid, file gt __kmp_hidden_helper_threads_numid.cpp, line 59.
), function assert_gtid, file gt), function assert_gtid, file gt __kmp_hidden_helper_threads_numid.cpp, line 57.
), function assert_gtid, file gt
error: command failed with exit status: -6

--

********************
```

Let us know if this is a blocker?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztWEtz4jgQ_jXmorLLDzDh4APhUZvaZDI1JLVzo2RbgBbZckkymfz77bYNeZCZEF6bQ6pUuC21Wl-32l9LxDJ9jKzQbZo7tNz-uH91bQV9Ingss4KAiG-G6iXP55Y_XvA0Zfl0wUTB1BT7oXNueOokBaj7F6FH5Iz4vZ7l92qTlr9_I3ejyR2Y7e6FB-YRdGg0JIeAqN2YJIoXBgFUr7bdeAdwYJ0f999QogYilzPiQZcVXBICY-N7zZSGp5ExpygkMmXwEGKV2YWS_7LEwGtccpHC00GZ56gnKDp5CY3YM1mwHEIAUi5t9gv85RnLDRU210xA_9UeizU9qFjbB0GVuQHTIGmVfMzsGzYM04bY13tggz1vvJUZN_ZM0YzZheS5YYrY_wjLH9iqoGYBwn7WIXKPWklpEF2_KARPqOEyx9k_cbpDMYvGAwlr5lWUhmzFBLipQP4uqJlJlWH_DU1uJz-doul6pTkZ_v1MSafLo4QVR7ICoqtNagXDpE4Vr30Uy7t-87Y8etrthuC2NEVpnkFxDHwetsgATwjtM8H6E1f4X1zxxRVfXPH_cgXLV-T25vv02_3N9O6vH6P-cAJR8j4T3JfnjtEvbsgAkQCV2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