Clang: Adjust mangled name test to accept any output.

We get different mangled names on windows and unix. As we do not
actually use the mangled names and to reduce the maintenance for this
test accept any mangled name, as long as it is not empty.

Change-Id: Id154da430db6958eb40e5b409e5fb186778d41c1
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
David Schulz
2016-06-23 08:50:45 +02:00
parent fcc0648ba1
commit de9f7a8978

View File

@@ -158,7 +158,7 @@ TEST_F(Cursor, Mangling)
auto cursor = translationUnit.cursorAt(3, 6);
ASSERT_THAT(cursor.mangling(), Utf8StringLiteral("_Z8functioni"));
ASSERT_THAT(cursor.mangling().isEmpty(), false);
}
TEST_F(Cursor, Spelling)