@@ -43,7 +43,8 @@ class TestingFileCollector : public FileCollector {
4343TEST (FileCollectorTest, addFile) {
4444  TempDir root (" add_file_root" /* Unique*/ true );
4545  std::string root_fs (root.path ());
46-   TestingFileCollector FileCollector (root_fs, root_fs);
46+   TestingFileCollector FileCollector (root_fs, root_fs,
47+                                      vfs::getRealFileSystem ());
4748
4849  FileCollector.addFile (" /path/to/a" 
4950  FileCollector.addFile (" /path/to/b" 
@@ -77,7 +78,8 @@ TEST(FileCollectorTest, addDirectory) {
7778  TempFile c (ccc.str ());
7879
7980  std::string root_fs (file_root.path ());
80-   TestingFileCollector FileCollector (root_fs, root_fs);
81+   TestingFileCollector FileCollector (root_fs, root_fs,
82+                                      vfs::getRealFileSystem ());
8183
8284  FileCollector.addDirectory (file_root.path ());
8385
@@ -105,7 +107,8 @@ TEST(FileCollectorTest, copyFiles) {
105107  //  Create file collector and add files.
106108  TempDir root (" copy_files_root" /* Unique*/ true );
107109  std::string root_fs (root.path ());
108-   TestingFileCollector FileCollector (root_fs, root_fs);
110+   TestingFileCollector FileCollector (root_fs, root_fs,
111+                                      vfs::getRealFileSystem ());
109112  FileCollector.addFile (a.path ());
110113  FileCollector.addFile (b.path ());
111114  FileCollector.addFile (c.path ());
@@ -133,7 +136,8 @@ TEST(FileCollectorTest, recordAndConstructDirectory) {
133136  //  Create file collector and add files.
134137  TempDir root (" copy_files_root" /* Unique*/ true );
135138  std::string root_fs (root.path ());
136-   TestingFileCollector FileCollector (root_fs, root_fs);
139+   TestingFileCollector FileCollector (root_fs, root_fs,
140+                                      vfs::getRealFileSystem ());
137141  FileCollector.addFile (a.path ());
138142
139143  //  The empty directory isn't seen until we add it.
@@ -169,7 +173,8 @@ TEST(FileCollectorTest, recordVFSAccesses) {
169173  //  Create file collector and add files.
170174  TempDir root (" copy_files_root" /* Unique*/ true );
171175  std::string root_fs (root.path ());
172-   auto  Collector = std::make_shared<TestingFileCollector>(root_fs, root_fs);
176+   auto  Collector = std::make_shared<TestingFileCollector>(
177+       root_fs, root_fs, vfs::getRealFileSystem ());
173178  auto  VFS =
174179      FileCollector::createCollectorVFS (vfs::getRealFileSystem (), Collector);
175180  VFS->status (a.path ());
@@ -216,7 +221,8 @@ TEST(FileCollectorTest, Symlinks) {
216221  //  Root where files are copied to.
217222  TempDir reproducer_root (" reproducer_root" /* Unique*/ true );
218223  std::string root_fs (reproducer_root.path ());
219-   TestingFileCollector FileCollector (root_fs, root_fs);
224+   TestingFileCollector FileCollector (root_fs, root_fs,
225+                                      vfs::getRealFileSystem ());
220226
221227  //  Add all the files to the collector.
222228  FileCollector.addFile (a.path ());
@@ -264,7 +270,8 @@ TEST(FileCollectorTest, recordVFSSymlinkAccesses) {
264270  //  Create file collector and add files.
265271  TempDir root (" copy_files_root" true );
266272  std::string root_fs (root.path ());
267-   auto  Collector = std::make_shared<TestingFileCollector>(root_fs, root_fs);
273+   auto  Collector = std::make_shared<TestingFileCollector>(
274+       root_fs, root_fs, vfs::getRealFileSystem ());
268275  auto  VFS =
269276      FileCollector::createCollectorVFS (vfs::getRealFileSystem (), Collector);
270277  SmallString<256 > Output;
0 commit comments