aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2017-07-24 18:03:52 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2017-07-27 14:04:32 +0000
commit5ab729ea10851fa63ebdd97bd3a93da1185f60e8 (patch)
tree719083c838f8b4d3c64bf56bbc73be7a22a91442 /tests
parent9297ee92c6fc0be6893c53082853b7565f7f6bc4 (diff)
Clang: Fix tests for output arguments
Change-Id: I9aeef5758c6291f19efc3d72d5d985adad4c13ab Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/unittest/cursor-test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/unittest/cursor-test.cpp b/tests/unit/unittest/cursor-test.cpp
index 2ddf202260..e229c6522a 100644
--- a/tests/unit/unittest/cursor-test.cpp
+++ b/tests/unit/unittest/cursor-test.cpp
@@ -494,7 +494,7 @@ TEST_F(Cursor, HasOutputValues)
auto outputArgumentLocations = callExpressionCursor.outputArgumentRanges();
- ASSERT_THAT(outputArgumentLocations.size(), 2);
+ ASSERT_THAT(outputArgumentLocations.size(), 1);
ASSERT_THAT(outputArgumentLocations[0], outputArgumentExpectedSourceLocation);
}
@@ -749,13 +749,13 @@ TEST_F(Cursor, PointerIsNotRefencingConstant)
ASSERT_FALSE(argument.isReferencingConstant());
}
-TEST_F(Cursor, PointerIsOutputArgument)
+TEST_F(Cursor, PointerIsNotOutputArgument)
{
auto callExpressionCursor = translationUnit.cursorAt(127, 13);
auto argument = callExpressionCursor.type().argument(0);
- ASSERT_TRUE(argument.isOutputArgument());
+ ASSERT_FALSE(argument.isOutputArgument());
}
TEST_F(Cursor, ConstantReferenceIsNotOutputArgument)
@@ -782,7 +782,7 @@ TEST_F(Cursor, ConstantPointerIsNotOutputArgument)
auto argument = callExpressionCursor.type().argument(0);
- ASSERT_TRUE(argument.isOutputArgument());
+ ASSERT_FALSE(argument.isOutputArgument());
}
TEST_F(Cursor, ReferenceIsOutputArgument)