[all-commits] [llvm/llvm-project] 1adaf4: [libcxx] [test] Fix path.decompose for windows

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri Mar 5 09:41:31 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1adaf48d231d1dfbd7ff575e2d03c8b01a512fe7
      https://github.com/llvm/llvm-project/commit/1adaf48d231d1dfbd7ff575e2d03c8b01a512fe7
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp

  Log Message:
  -----------
  [libcxx] [test] Fix path.decompose for windows

Add ifdefs to the test reference tables for cases where paths are
interpreted differently (paths that contain a root name).

Fix test assumptions regarding has_root_name() and is_absolute() and
add logic to verify the results of is_absolute() for the test cases in
the table.

Also add a testcase for the path "//net/", which seemed like an
omission.

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


  Commit: 232fec941d2301165ea20ba8e6970bdf3c515c84
      https://github.com/llvm/llvm-project/commit/232fec941d2301165ea20ba8e6970bdf3c515c84
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M libcxx/utils/ssh.py

  Log Message:
  -----------
  [libcxx] [test] Add an option to ssh.py for using a different temp path

If cross testing on Windows via WSL (at least with WSL 1), the Windows
executables can't be executed if they are in WSL specific directories
(like /tmp).

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


Compare: https://github.com/llvm/llvm-project/compare/2da21a1bd466...232fec941d23


More information about the All-commits mailing list