Apex.AI uses the VectorCAST to measure the code coverage of iceoryx.
While the VectorCAST tool processes 68 line of test_cxx_newtype.cpp to measure the code coverage, the error is detected by the VectorCAST tool.
The root cause seems to come from the front end of the compiler.
It cannot process the multi-line in the raw string format in EXPECT_FALSE macro of CPP code.
Workaround
The workaround is to insert the pointer of the raw string.
TEST(NewType, DISABLED_NoComparableDoesNotCompile)
{
const char* p = R"(
Sut<NewType<int, newtype::ConstructByValueCopy>> a(123), b(456);
if ( a == b ) {}
)";
EXPECT_FALSE(compileTest.verify(p));
}
Brief feature description
Motivation
Apex.AI uses the VectorCAST to measure the code coverage of iceoryx.
While the VectorCAST tool processes 68 line of test_cxx_newtype.cpp to measure the code coverage, the error is detected by the VectorCAST tool.
The root cause seems to come from the front end of the compiler. It cannot process the multi-line in the raw string format in
EXPECT_FALSE
macro of CPP code.Workaround
The workaround is to insert the pointer of the raw string.