Skip to content
Snippets Groups Projects
Commit f2039b7d authored by Eric Cano's avatar Eric Cano
Browse files

Added suppressions to prevent helgrind from triggering on mutex tests in CC7.

Added new make targets for helgrind and valgrind.
parent 5e3c2a67
Branches
Tags
No related merge requests found
......@@ -158,6 +158,18 @@ add_custom_target(fullunittests
DEPENDS tests/cta-unitTests tests/valgrind.suppr tests/helgrind.suppr
COMMENT "Running unit tests with memory leak and race conditions detection" VERBATIM)
add_custom_target(valgrind
valgrind --track-fds=yes --leak-check=full --demangle=yes --gen-suppressions=all --show-reachable=yes --error-exitcode=1 --suppressions=tests/valgrind.suppr tests/cta-unitTests
DEPENDS tests/cta-unitTests tests/valgrind.suppr
COMMENT "Running unit tests with memory leak and race conditions detection" VERBATIM)
add_custom_target(helgrind
valgrind --tool=helgrind -v --demangle=yes --gen-suppressions=all --conflict-cache-size=30000000 --error-exitcode=1 --suppressions=tests/helgrind.suppr tests/cta-unitTests
DEPENDS tests/cta-unitTests tests/helgrind.suppr
COMMENT "Running unit tests with memory leak and race conditions detection" VERBATIM)
add_custom_target(shortunittests
tests/cta-unitTests
......
......@@ -97,3 +97,111 @@
fun:main
}
{
pthread_test1_cc7
Helgrind:Misc
fun:pthread_mutex_*
...
fun:_ZN9unitTests*castor_tape_threading_*
fun:HandleSehExceptionsInMethodIfSupported<testing::Test, void>
fun:_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
fun:_ZN7testing4Test3RunEv
fun:_ZN7testing8TestInfo3RunEv
fun:_ZN7testing8TestCase3RunEv
fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
fun:HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:_ZN7testing8UnitTest3RunEv
fun:main
}
{
pthread_test2_cc7
Helgrind:PthAPIerror
fun:pthread_mutex_*
...
fun:_ZN9unitTests*castor_tape_threading_*
fun:HandleSehExceptionsInMethodIfSupported<testing::Test, void>
fun:_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
fun:_ZN7testing4Test3RunEv
fun:_ZN7testing8TestInfo3RunEv
fun:_ZN7testing8TestCase3RunEv
fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
fun:HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:_ZN7testing8UnitTest3RunEv
fun:main
}
{
pthread_test3_cc7
Helgrind:UnlockUnlocked
fun:pthread_mutex_*
...
fun:_ZN9unitTests*castor_tape_threading_*
fun:HandleSehExceptionsInMethodIfSupported<testing::Test, void>
fun:_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
fun:_ZN7testing4Test3RunEv
fun:_ZN7testing8TestInfo3RunEv
fun:_ZN7testing8TestCase3RunEv
fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
fun:HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:_ZN7testing8UnitTest3RunEv
fun:main
}
{
pthread_test1m_cc7
Helgrind:Misc
fun:pthread_mutex_*
...
fun:_ZN9unitTests*castor_messages_Mutex*
fun:HandleSehExceptionsInMethodIfSupported<testing::Test, void>
fun:_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
fun:_ZN7testing4Test3RunEv
fun:_ZN7testing8TestInfo3RunEv
fun:_ZN7testing8TestCase3RunEv
fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
fun:HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:_ZN7testing8UnitTest3RunEv
fun:main
}
{
pthread_test2m_cc7
Helgrind:PthAPIerror
fun:pthread_mutex_*
...
fun:_ZN9unitTests*castor_messages_Mutex*
fun:HandleSehExceptionsInMethodIfSupported<testing::Test, void>
fun:_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
fun:_ZN7testing4Test3RunEv
fun:_ZN7testing8TestInfo3RunEv
fun:_ZN7testing8TestCase3RunEv
fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
fun:HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:_ZN7testing8UnitTest3RunEv
fun:main
}
{
pthread_test3m_cc7
Helgrind:UnlockUnlocked
fun:pthread_mutex_*
...
fun:_ZN9unitTests*castor_messages_Mutex*
fun:HandleSehExceptionsInMethodIfSupported<testing::Test, void>
fun:_ZN7testing8internal35HandleExceptionsInMethodIfSupportedINS_4TestEvEET0_PT_MS4_FS3_vEPKc
fun:_ZN7testing4Test3RunEv
fun:_ZN7testing8TestInfo3RunEv
fun:_ZN7testing8TestCase3RunEv
fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
fun:HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
fun:_ZN7testing8UnitTest3RunEv
fun:main
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment