File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,12 +139,13 @@ class TestImportProject : public TestFixture {
139139 void setRelativePathsInclude () const {
140140 const std::string cwd = Path::fromNativeSeparators (Path::getCurrentPath ());
141141 TestImporter importer;
142- FileSettings fs{cwd + " /sub/a.c" , Standards::Language::None , 0 };
142+ FileSettings fs{cwd + " /sub/a.c" , Standards::Language::C , 0 };
143143 fs.includePaths .push_back (cwd + " /" );
144144 importer.fileSettings .push_back (std::move (fs));
145- importer.setRelativePaths (" project.json" );
146- ASSERT_EQUALS (" ." , importer.fileSettings .cbegin ()->includePaths .front ());
147- ASSERT_EQUALS (" sub/a.c" , importer.fileSettings .cbegin ()->filename ());
145+ importer.setRelativePaths (" compile_commands.json" );
146+ const FileSettings &fs = importer.fileSettings .front ();
147+ ASSERT_EQUALS (" ." , fs.includePaths .front ());
148+ ASSERT_EQUALS (" sub/a.c" , fs.filename ());
148149 }
149150
150151 void importCompileCommands1 () const {
You can’t perform that action at this time.
0 commit comments