mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +00:00
Replace UNIXy path with os-independent one in DebugIR unit test
- should resolve windows buildbot failure llvm-svn: 185232
This commit is contained in:
parent
12c3b510fa
commit
8f769455dc
@ -96,14 +96,15 @@ protected:
|
||||
|
||||
// Test empty named Module that is not supposed to be output to disk.
|
||||
TEST_F(TestDebugIR, EmptyNamedModuleNoWrite) {
|
||||
string name = "/mock/path/to/empty_module.ll";
|
||||
M.reset(createEmptyModule(name));
|
||||
D.reset(static_cast<DebugIR *>(llvm::createDebugIRPass()));
|
||||
string Path;
|
||||
D->runOnModule(*M, Path);
|
||||
string Dir = "MadeUpDirectory";
|
||||
string File = "empty_module.ll";
|
||||
string Path(getPath(Dir, File));
|
||||
|
||||
// verify DebugIR was able to correctly parse the file name from module ID
|
||||
ASSERT_EQ(Path, name);
|
||||
M.reset(createEmptyModule(Path));
|
||||
|
||||
// constructing DebugIR with no args should not result in any file generated.
|
||||
D.reset(static_cast<DebugIR *>(llvm::createDebugIRPass()));
|
||||
D->runOnModule(*M);
|
||||
|
||||
// verify DebugIR did not generate a file
|
||||
ASSERT_FALSE(removeIfExists(Path)) << "Unexpected file " << Path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user