mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Fix -Wunused-function in a non-Win32 build
llvm-svn: 253373
This commit is contained in:
parent
459ce58049
commit
d6549131aa
@ -360,6 +360,7 @@ TEST(Support, TempDirectory) {
|
||||
EXPECT_TRUE(!TempDir.empty());
|
||||
}
|
||||
|
||||
#ifdef LLVM_ON_WIN32
|
||||
static std::string path2regex(std::string Path) {
|
||||
size_t Pos = 0;
|
||||
while ((Pos = Path.find('\\', Pos)) != std::string::npos) {
|
||||
@ -381,7 +382,6 @@ static std::string path2regex(std::string Path) {
|
||||
}, \
|
||||
::testing::ExitedWithCode(0), path2regex(expected))
|
||||
|
||||
#ifdef LLVM_ON_WIN32
|
||||
TEST(SupportDeathTest, TempDirectoryOnWindows) {
|
||||
// In this test we want to check how system_temp_directory responds to
|
||||
// different values of specific env vars. To prevent corrupting env vars of
|
||||
|
Loading…
Reference in New Issue
Block a user