Commit 4d777293 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 1

Look for the PATH environment variable rather than USER

Summary: Windows is weird and calls it USERNAME instead, so just use one that everything agrees on: PATH

Reviewed By: yfeldblum

Differential Revision: D3691072

fbshipit-source-id: 579c6484736ef47e130049c29bef8b59c66a4482
parent 703fb237
......@@ -204,7 +204,7 @@ TEST_F(EnvVarSaverTest, ExampleNew) {
}
TEST_F(EnvVarSaverTest, ExampleExisting) {
auto key = "USER";
auto key = "PATH";
EXPECT_NE(nullptr, getenv(key));
auto value = std::string{getenv(key)};
......@@ -216,7 +216,7 @@ TEST_F(EnvVarSaverTest, ExampleExisting) {
}
TEST_F(EnvVarSaverTest, ExampleDeleting) {
auto key = "USER";
auto key = "PATH";
EXPECT_NE(nullptr, getenv(key));
auto value = std::string{getenv(key)};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment