[all-commits] [llvm/llvm-project] df1e43: [libcxx] [test] Fix get/put long_double_ru_RU on G...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Thu Mar 3 03:32:07 PST 2022


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

  Changed paths:
    M libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_fr_FR.pass.cpp
    M libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_ru_RU.pass.cpp
    M libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/put_long_double_fr_FR.pass.cpp
    M libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/put_long_double_ru_RU.pass.cpp
    M libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/curr_symbol.pass.cpp
    A libcxx/test/support/locale_helpers.h

  Log Message:
  -----------
  [libcxx] [test] Fix get/put long_double_ru_RU on Glibc, FreeBSD and Windows

Note, reducing ios.width() in put_long_double instead of using variable
padding, when using a variable width symbol. Some of those tests didn't
actually trigger any padding in the existing form, with a longer
currency symbol; reduce the width so there's no actual padding with the
slightly shorter currency symbol either.

The tests for the international currency symbol use the same amount of
padding on all platforms, so they still exercise the padding properly.

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


  Commit: 9e2236fb7bd0177024f396d44ed208c46218ca6a
      https://github.com/llvm/llvm-project/commit/9e2236fb7bd0177024f396d44ed208c46218ca6a
  Author: Martin Storsjö <martin at martin.st>
  Date:   2022-03-03 (Thu, 03 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:
  -----------
  Reapply [lit] Read command stdout/stderr as text on Windows

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

Fix up a couple tests that accidentally pass binary data to stdout.

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


Compare: https://github.com/llvm/llvm-project/compare/47f4cd9c3dbf...9e2236fb7bd0


More information about the All-commits mailing list