DavidSpickett wrote:

> It is an assert inside CRT. Probably states of handles are wrong.

Or that's just the assert going off and using something in CRT to do so.

```
Expected: succeeded
  Actual: failed  (Unsupported file type 2)
```
This could be coming from `lldb/source/Host/windows/MainLoopWindows.cpp`:
```
    DWORD file_type = GetFileType(waitable_handle);
    if (file_type != FILE_TYPE_PIPE) {
      error = Status::FromErrorStringWithFormat("Unsupported file type %ld",
                                                file_type);
      return nullptr;
    }
```
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfiletype

These are test cases, so it would make some sense if one of the streams was not 
a pipe but some premade string or text file.

https://github.com/llvm/llvm-project/pull/159160
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to