[all-commits] [llvm/llvm-project] 640e45: [lit] Read command stdout/stderr as text on Windows

Martin Storsjö via All-commits all-commits at lists.llvm.org
Tue Mar 1 04:25:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 640e45b9b2205ba18a4a562a9404418d8b90abda
      https://github.com/llvm/llvm-project/commit/640e45b9b2205ba18a4a562a9404418d8b90abda
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M libcxx/test/libcxx/selftest/dsl/dsl.sh.py
    M llvm/test/MC/ELF/diff2.s
    M llvm/test/MC/Mips/relocation-xfail.s
    M llvm/test/Other/cfg-printer-branch-weights-percent.ll
    M llvm/test/Other/cfg-printer-branch-weights.ll
    M llvm/test/Other/cfg-printer-filter.ll
    M llvm/test/Other/cfg_deopt_unreach.ll
    M llvm/utils/lit/lit/TestRunner.py

  Log Message:
  -----------
  [lit] Read command stdout/stderr as text on Windows

This takes care of normalizing newlines back to single LF instead
of CRLF.

This on itself breaks on a couple tests that accidentally seem to
be writing binary data to stdout; make sure those cases are piped
to /dev/null instead of actually written to a terminal.

Differential Revision: https://reviews.llvm.org/D120623




More information about the All-commits mailing list