@@ -186,12 +186,12 @@ TEST(DependencyScanningFilesystem, DiagnoseStaleStatFailures) {
186
186
DependencyScanningFilesystemSharedCache SharedCache;
187
187
DependencyScanningWorkerFilesystem DepFS (SharedCache, InMemoryFS);
188
188
189
- bool Path1Exists = DepFS.exists (" /path1" );
189
+ bool Path1Exists = DepFS.exists (" /path1.suffix " );
190
190
EXPECT_EQ (Path1Exists, false );
191
191
192
192
// Adding a file that has been stat-ed,
193
- InMemoryFS->addFile (" /path1" , 0 , llvm::MemoryBuffer::getMemBuffer (" " ));
194
- Path1Exists = DepFS.exists (" /path1" );
193
+ InMemoryFS->addFile (" /path1.suffix " , 0 , llvm::MemoryBuffer::getMemBuffer (" " ));
194
+ Path1Exists = DepFS.exists (" /path1.suffix " );
195
195
// Due to caching in SharedCache, path1 should not exist in
196
196
// DepFS's eyes.
197
197
EXPECT_EQ (Path1Exists, false );
@@ -200,5 +200,5 @@ TEST(DependencyScanningFilesystem, DiagnoseStaleStatFailures) {
200
200
SharedCache.getInvalidNegativeStatCachedPaths (*InMemoryFS.get ());
201
201
202
202
EXPECT_EQ (InvalidPaths.size (), 1u );
203
- ASSERT_STREQ (" /path1" , InvalidPaths[0 ].str ().c_str ());
203
+ ASSERT_STREQ (" /path1.suffix " , InvalidPaths[0 ].str ().c_str ());
204
204
}
0 commit comments