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

    <tr>
        <th>Summary</th>
        <td>
            Test lljit-with-thinlto-summaries.test may fail because its output order depends on file paths
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug,
            orcjit
      </td>
    </tr>

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

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

<pre>
    Test `lljit-with-thinlto-summaries.test` checks that `LLJITWithThinLTOSummaries` print all module names, but order in which modules are printed depends on full file paths as module names are printed by iterating over a StringMap keyed by a module path.
As a result the test fails intermittently depending on a path to LLVM copy.

An example of such failure https://reviews.llvm.org/harbormaster/unit/view/5510719/:
```
Command Output (stderr):
--
/var/lib/buildkite-agent/builds/llvm-project/llvm/test/Examples/OrcV2Examples/lljit-with-thinlto-summaries.test:13:10: error: CHECK: expected string not found in input
# CHECK: About to load module: {{.*}}/bar-mod.bc
         ^
<stdin>:3:119: note: scanning from here
About to load module: /var/lib/buildkite-agent/builds/llvm-project/build/test/Examples/OrcV2Examples/Output/foo-mod.bc
                                                                                                                      ^
<stdin>:4:13: note: possible intended match here
'main' finished with exit code: 0
            ^

Input file: <stdin>
Check file: /var/lib/buildkite-agent/builds/llvm-project/llvm/test/Examples/OrcV2Examples/lljit-with-thinlto-summaries.test

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1: About to load module: /var/lib/buildkite-agent/builds/llvm-project/build/test/Examples/OrcV2Examples/Output/main-mod.bc 
            2: About to load module: /var/lib/buildkite-agent/builds/llvm-project/build/test/Examples/OrcV2Examples/Output/bar-mod.bc 
            3: About to load module: /var/lib/buildkite-agent/builds/llvm-project/build/test/Examples/OrcV2Examples/Output/foo-mod.bc 
check:13'0                                                                                                                           X error: no match found
            4: 'main' finished with exit code: 0 
check:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:13'1                 ?                      possible intended match
>>>>>>
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVt1vozgQ_2vgxSICEyB54CGbprq9y6oPW-3dqwET3Bob-aPZ3F9_Y0NK27TX1UlXFVmAzcxvvoepZHMqb6k2KMhjzu-YiY7MdJHpmOBGRtr2PVGM6oUBIqBBdUfre41MRzzPfv_719s_geUWOPa3N9_PDI52UEwYRDhHvWwsp0iQHr7gLaqsQVI1VCEm0LFjdTeRaEQUHRlpgxo6UNFoJAVqLcC0DEAGYjog089An7FVJ8QMVcQwcUDyAaQQ9N3Ax8M3MqB7ehppyBnBIS6C-CqINxtAQopqyw3YSJEzG7WEcY0ctuqZMVQYfpp08xIE8DgMZCTa7398Q7UcThPgBCsQ_Un6AYTJFmkL9jpQC0p3xgw6SDcBvoal6AOjR73g_KFfSHWAo46oSqqeaBAPWyuYgYcjg0eWJXGRrB1zOskCz0_Lb7cSIiIadGPNAF4P8EobcDxArR9ZomhiBVzihHBWwb2yjDf34MqIHMDo84l2BKBfNCh5R2szbeHhkwRf70ZTHd2Nqn_gJ_v3cyzdJKm7xXBDoKdU7mX72277hz_5OYBICKD2AUVCQnykBQMhk5gAE8-mpDPTppJgOkSHS9JMUXfnQfEF1iLAm6C4cgssJCoCgkVVjzjofAXZbkJOt-BBJoJ0Bxhe18S50qniUXVNhHC6tUr2qKOKTknwlhb_1ev-_JfcPgYfXlopXzfvQ683fLk8B__RlYPUmlVQNa74RANh74mB4pmdGuCiJwCAC-gOgukOaFx6QaIwA4XYeJz40tpZB3__6lLHNxgfkid6jVXk2t78-RPUyRPdo8b2QzQmf3rVUT64MuHgFu2bWCs5l0eXkZ4GOfLFpfFHoucmkm5frgsPJv9aWh-Y1C4BpqxGl2riz6Lm3Fpe0TL9LFrOHWLS0v_xx8rERfz_NYV3r7_m34GQUyPwrf_Sm8vRa7_UGt42Myh2H7EuxScXtgfp9etOeaNDnqt493K9NiKEtEzyfF3gI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