summaryrefslogtreecommitdiff
path: root/tests/unit/unittest/pchcreator-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unittest/pchcreator-test.cpp')
-rw-r--r--tests/unit/unittest/pchcreator-test.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/unit/unittest/pchcreator-test.cpp b/tests/unit/unittest/pchcreator-test.cpp
index 8a1e1ffa8e..d44e72ee6f 100644
--- a/tests/unit/unittest/pchcreator-test.cpp
+++ b/tests/unit/unittest/pchcreator-test.cpp
@@ -133,9 +133,7 @@ TEST_F(PchCreator, CreateProjectPartPchFileContent)
TEST_F(PchCreator, CreateProjectPartClangCompilerArguments)
{
- auto arguments = creator.generateClangCompilerArguments(std::move(pchTask1),
- "project.h",
- "project.pch");
+ auto arguments = creator.generateClangCompilerArguments(std::move(pchTask1), "project.pch");
ASSERT_THAT(arguments,
ElementsAre("clang++",
@@ -151,17 +149,14 @@ TEST_F(PchCreator, CreateProjectPartClangCompilerArguments)
"-isystem",
toNativePath(TESTDATA_DIR "/builddependencycollector/system").path(),
"-o",
- "project.pch",
- "project.h"));
+ "project.pch"));
}
TEST_F(PchCreator, CreateProjectPartClangCompilerArgumentsWithSystemPch)
{
pchTask1.systemPchPath = "system.pch";
- auto arguments = creator.generateClangCompilerArguments(std::move(pchTask1),
- "project.h",
- "project.pch");
+ auto arguments = creator.generateClangCompilerArguments(std::move(pchTask1), "project.pch");
ASSERT_THAT(arguments,
ElementsAre("clang++",
@@ -181,8 +176,7 @@ TEST_F(PchCreator, CreateProjectPartClangCompilerArgumentsWithSystemPch)
"-Xclang",
"system.pch",
"-o",
- "project.pch",
- "project.h"));
+ "project.pch"));
}
TEST_F(PchCreatorVerySlowTest, ProjectPartPchsSendToPchManagerClient)