We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d177a53 commit f2bf133Copy full SHA for f2bf133
clang/unittests/Frontend/ReparseWorkingDirTest.cpp
@@ -77,12 +77,14 @@ class ReparseWorkingDirTest : public ::testing::Test {
77
};
78
79
TEST_F(ReparseWorkingDirTest, ReparseWorkingDir) {
80
- // Setup the working directory path. We use '//root/' to allow the path to be
81
- // valid on both Windows and Unix. We need the trailing slash for the path
82
- // to be treated as absolute.
+ // Setup the working directory path.
83
SmallString<16> WorkingDir;
84
- llvm::sys::path::append(WorkingDir, "//root",
85
- llvm::sys::path::get_separator());
+#ifdef _WIN32
+ WorkingDir = "C:\\";
+#else
+ WorkingDir = "/";
86
+#endif
87
+ llvm::sys::path::append(WorkingDir, "root");
88
setWorkingDirectory(WorkingDir);
89
90
SmallString<32> Header;
0 commit comments