-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TMP: gtest doesn't work without --test_env TMP=/tmp
on Windows
#1590
Comments
There is nothing to investigate, we should figure out how to provide a sensible TMP location to rlues |
@dslomov: We can implement a native |
I also ran into problems lately with handling EDIT: ...meaning the real problem isn't |
@rokstrnisa : What target were you testing? Can you repro with bazel built at HEAD (say, ff122f3)? |
On ff122f3, it fails due to a different issue, both with or without the
|
--test_env TMP=/tmp
on Windows--test_env TMP=/tmp
on Windows
I'm affected by this on bazel 0.5.3. |
Every build and test action that creates a Spawn will now have platform-specific environment variables for temp directories: - on Windows: TMP and TEMP - on Linux/Darwin: TMPDIR This is particularly important on Windows where e.g. Java programs cannot create temp directories unless there's a valid TMP or TEMP environment variable set. Fixes: - #1590 - #2349 - #2870 Change-Id: Ib758307daf6b3a51b0f71ae5e65e5bb564dad643 PiperOrigin-RevId: 172326371
Closing because actions now always have a temp directory. |
Running
bazel test --cpu='x64_windows_msvc' --verbose_failures
with gtest given the following errorHowever, adding
--test_env TMP=/tmp
to the command fixes the problem.Context: Bazel 0.3.0.
The text was updated successfully, but these errors were encountered: