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

    <tr>
        <th>Summary</th>
        <td>
            ThinLTO/X86/cache.ll regression test flaky
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    At the current `main` branch HEAD (commit `14c95e0c8b25f6deba47cd279c5dcdeef3870159`), when running the regression test suite with `ninja check-llvm`, the `ThinLTO/X86/cache.ll` regression test sometimes passes for me, but sometimes fails.

When I run the test with `bin/llvm-lit test/ThinLTO/X86/cache.ll`, it seems to always pass.

I think it failed at different points; but one of the failures was this (failing at the first `; RUN: ls %t.cache.noindex/llvmcache-foo-76` line):
```
RUN: at line 123: touch -t 198002051200 [...]/test/ThinLTO/X86/Output/cache.ll.tmp.cache.noindex/llvmcache-foo-76
+ touch -t 198002051200 [...]/test/ThinLTO/X86/Output/cache.ll.tmp.cache.noindex/llvmcache-foo-76
RUN: at line 124: [...]/bin/llvm-lto -thinlto-action=run -exported-symbol=globalfunc [...]/test/ThinLTO/X86/Output/cache.ll.tmp2.bc [...]/test/ThinLTO/X86/Output/cache.ll.tmp.bc -thinlto-cache-dir [...]/test/ThinLTO/X86/Output/cache.ll.tmp.cache.noindex --thinlto-cache-max-size-bytes 78847 --thinlto-cache-entry-expiration 4294967295
+ [...]/bin/llvm-lto -thinlto-action=run -exported-symbol=globalfunc [...]/test/ThinLTO/X86/Output/cache.ll.tmp2.bc [...]/test/ThinLTO/X86/Output/cache.ll.tmp.bc -thinlto-cache-dir [...]/test/ThinLTO/X86/Output/cache.ll.tmp.cache.noindex --thinlto-cache-max-size-bytes 78847 --thinlto-cache-entry-expiration 4294967295
RUN: at line 125: ls [...]/test/ThinLTO/X86/Output/cache.ll.tmp.cache.noindex/llvmcache-foo-8
+ ls [...]/test/ThinLTO/X86/Output/cache.ll.tmp.cache.noindex/llvmcache-foo-8
RUN: at line 126: ls [...]/test/ThinLTO/X86/Output/cache.ll.tmp.cache.noindex/llvmcache-foo-76
+ ls [...]/test/ThinLTO/X86/Output/cache.ll.tmp.cache.noindex/llvmcache-foo-76
ls: cannot access '[...]/test/ThinLTO/X86/Output/cache.ll.tmp.cache.noindex/llvmcache-foo-76': No such file or directory
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsVk2P2zYQ_TX0ZSCBor4POnjjGg1QJECRor1S1MjiLkUa5Che99cXlL2pUSMtENTIJYAuEmfee_OGGlKGoA8WsWPlEyt3G7nQ5HxHEz5Pm94N525LQBOCWrxHS8AqPkttWcWh99KqCX7-absDJhrl5lmvAVmh2hK5anpRjtWAvSxqNYi6VeWgBsQxb2qelS2rOBMtE-_gNKEFv1ir7WGl83jwGIJ2FggDQVg0IZw0TZHAavssQU2oXhJjPs8r0Ls1kVX806TtL58-MrH_o6mY2CupJkyNiZrvcN2MpGcMcJQhYIDReZgxovXL7fIotQkp41vGt79Hte-j3pVyBXqT1mvLxD6KSoymdY2J_b9IilSaICDOAciBNCd5vsi50r0HmrR9iVFRBQ4gCQY9jrh25Oi0pcDyp1WxswhuXHXF4MVjgJMMESLELsWP0WR5aeuofVh7FvN__e0Dy7dgYmBJ6UWkddoO-Hotav2WjM4ldRX9NNpi7GEehUaYy8O3VyxJawhkIo-v5BY1QUKQtQ3ngpeZ4BxY-ZSmKSt3TOy_YtjHhY4L3TiX0nz8b4V8y8TTd2C9q76Ir7eMt_uEHCSxxYZcIhVpZ1m-i7srwdej84RDEs5z7wzLdwfjemnGxapvLkCk_bcnx9wvYi9VD9r_T2ZC8g_oWb4mQf-JSX8mDFA3TVHfBaElf45WaS-jeVCItmirWrTldQP8MP47GH_3D5Rvw-UxP15zbfZjGe6qqh5b1Zch9mAKE2IdSlrrCKRSGOIpUD-OUtSR8IODEIfzqA2C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