Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
efa5f144
Commit
efa5f144
authored
9 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
Added suppressions to prevent helgrind from triggering on mutex tests in CC7.
Added new make targets for helgrind and valgrind.
parent
05343bdf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+12
-0
12 additions, 0 deletions
CMakeLists.txt
tests/helgrind.suppr
+108
-0
108 additions, 0 deletions
tests/helgrind.suppr
with
120 additions
and
0 deletions
CMakeLists.txt
+
12
−
0
View file @
efa5f144
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tests/helgrind.suppr
+
108
−
0
View file @
efa5f144
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment