ENH: add another valgrind error type

This commit is contained in:
Bill Hoffman 2007-08-03 16:35:22 -04:00
parent bffcff4530
commit 6baaf296a5
1 changed files with 5 additions and 0 deletions

View File

@ -684,6 +684,7 @@ bool cmCTestMemCheckHandler::ProcessMemCheckValgrindOutput(
cmsys::RegularExpression vgUMR3("== .*Jump to the invalid address "); cmsys::RegularExpression vgUMR3("== .*Jump to the invalid address ");
cmsys::RegularExpression vgUMR4("== .*Syscall param .* contains " cmsys::RegularExpression vgUMR4("== .*Syscall param .* contains "
"uninitialised or unaddressable byte\\(s\\)"); "uninitialised or unaddressable byte\\(s\\)");
cmsys::RegularExpression vgUMR5("== .*Syscall param .* uninitialised");
cmsys::RegularExpression vgIPW("== .*Invalid write of size [0-9]"); cmsys::RegularExpression vgIPW("== .*Invalid write of size [0-9]");
cmsys::RegularExpression vgABR("== .*pthread_mutex_unlock: mutex is " cmsys::RegularExpression vgABR("== .*pthread_mutex_unlock: mutex is "
"locked by a different thread"); "locked by a different thread");
@ -741,6 +742,10 @@ bool cmCTestMemCheckHandler::ProcessMemCheckValgrindOutput(
{ {
failure = cmCTestMemCheckHandler::UMR; failure = cmCTestMemCheckHandler::UMR;
} }
else if ( vgUMR5.find(lines[cc]) )
{
failure = cmCTestMemCheckHandler::UMR;
}
else if ( vgIPW.find(lines[cc]) ) else if ( vgIPW.find(lines[cc]) )
{ {
failure = cmCTestMemCheckHandler::IPW; failure = cmCTestMemCheckHandler::IPW;