@@ -186,12 +186,12 @@ TEST(DependencyScanningFilesystem, DiagnoseStaleStatFailures) {
186186 DependencyScanningFilesystemSharedCache SharedCache;
187187 DependencyScanningWorkerFilesystem DepFS (SharedCache, InMemoryFS);
188188
189- bool Path1Exists = DepFS.exists (" /path1" );
189+ bool Path1Exists = DepFS.exists (" /path1.suffix " );
190190 EXPECT_EQ (Path1Exists, false );
191191
192192 // 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 " );
195195 // Due to caching in SharedCache, path1 should not exist in
196196 // DepFS's eyes.
197197 EXPECT_EQ (Path1Exists, false );
@@ -200,5 +200,5 @@ TEST(DependencyScanningFilesystem, DiagnoseStaleStatFailures) {
200200 SharedCache.getInvalidNegativeStatCachedPaths (*InMemoryFS.get ());
201201
202202 EXPECT_EQ (InvalidPaths.size (), 1u );
203- ASSERT_STREQ (" /path1" , InvalidPaths[0 ].str ().c_str ());
203+ ASSERT_STREQ (" /path1.suffix " , InvalidPaths[0 ].str ().c_str ());
204204}
0 commit comments