Skip to content

Commit 5db3263

Browse files
author
William Jakobsson
committed
test change
1 parent fc9bea2 commit 5db3263

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

test/testimportproject.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)