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

    <tr>
        <th>Summary</th>
        <td>
            LLDB tests passing accidentally on Windows (x86_64)
        </td>
    </tr>

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

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

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

<pre>
    On Windows the following tests pass reliably, even though (IIUC) they shouldn't:
```
Unexpectedly Passed Tests (5):
  lldb-api :: api/command-return-object/TestSBCommandReturnObject.py
  lldb-api :: api/multiple-targets/TestMultipleTargets.py
```

They both use Python's `subprocess.check_call()` to validate the test result and they have a comment which notes that it "will raise a CalledProcessError if the executable doesn't return exit code 0". But what actually happens instead is, that we fail to build the test subject and don't even get to the place that would throw. Please find a repro with details here: [TestMultipleTargets-xpass-details.md](https://github.com/user-attachments/files/17831366/TestMultipleTargets-xpass-details.md)

There are two more tests that would be affected if they were supported:
```
UNSUPPORTED: lldb-api :: api/multiple-debuggers/TestMultipleDebuggers.py
UNSUPPORTED: lldb-api :: api/multithreaded/TestMultithreaded.py
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVN1u4zgPfRrlhkhgy_mxL3zRNlNggPm-BjMt9nJAS7StXcUyJCpO3n4hJ9MWndnZBYIIpsRDHvKQGILpBqJabO7FZr_AyL3z9UTWnMgMmhiNXTROX-qnAf4wg3ZTAO4JWmetm8zQAVPgACOGAJ6swcZehHwAOtEA3LvY9SBk-fnzy4OQVfK9QOhdtHoQcseiuBPZXmR3YpvdfvPny0DnkRSTthc4YAik4XmOJGS5EbJ6dQSwVjdLHA0kW3EHOBohH5U7HnHQS08c_bB0zZ-kWMjHhPLt_uF6-3W-fJrvVuPl94jHaNmMlpaMviMON7D_3czPV-srzAdG1__nxL9x3EMMBIcL9y7VIYDYZiE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