-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)area-WindowsWindows-specific issues and feature requestsWindows-specific issues and feature requestscoverageteam-Rules-CPPIssues for C++ rulesIssues for C++ rulestype: bug
Description
Description of the bug:
bazel coverage //cpp/test:mytest
ERROR(tools/test/windows/tw.cc:1294) ERROR: src/main/native/windows/process.cc(202): CreateProcessW("C:\users\user\_bazel_user\jh7tqry3\execroot\project\bazel-out\x64_windows-fastbuild\bin\cpp\test\mytest.exe.runfiles\project\external\bazel_tools\tools\test\collect_coverage.sh" cpp/test/mytest.exe
My .bazelrc does not contain
startup --windows_enable_symlinks
build --enable_runfiles
Note how test_wrapper resolved path to collect_coverage.sh
as to a data file under RUNFILES_DIR. The bug is that on Windows this file does not exist, because runfiles are not enabled.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
- have bazel project with
cc_test
- run
bazel coverage :test
on windows (does not matter if you use MSVC or MSYS compiler). - see the error above.
Which operating system are you running Bazel on?
Windows 10
What is the output of bazel info release
?
development version
If bazel info release
returns development version
or (@non-git)
, tell us how you built Bazel.
bazel build //src:bazel-dev.exe
Then used bazel-bin/src/bazel-dev.exe
.
What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD
?
https://github.com/futt-bucker/bazel.git
300111212f984587415ad8a1f00bf9d60b31e430
89301f45a7d2bcc3b82b918f96b9ff0037599e4c
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
No response
Metadata
Metadata
Assignees
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)area-WindowsWindows-specific issues and feature requestsWindows-specific issues and feature requestscoverageteam-Rules-CPPIssues for C++ rulesIssues for C++ rulestype: bug