Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
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
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
ChimeraTK Mirror
ApplicationCore
Commits
ec496afd
Commit
ec496afd
authored
7 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
Allow TestsStalled exception to be caught by making it public.
parent
dde222ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/Application.h
+8
-0
8 additions, 0 deletions
include/Application.h
src/Application.cc
+1
-3
1 addition, 3 deletions
src/Application.cc
with
9 additions
and
3 deletions
include/Application.h
+
8
−
0
View file @
ec496afd
...
...
@@ -142,6 +142,14 @@ namespace ChimeraTK {
std
::
string
getQualifiedName
()
const
override
{
return
"/"
+
_name
;
}
/** Special exception class which will be thrown if tests with the testable mode are stalled. Normally this
* exception should never be caught. The only reason for catching it might be a situation where the expected
* behaviour of an app is to do nothing and one wants to test this. Note that the stall condition only appears
* after a certain timeout, thus tests relying on this will take time.
*
* This exception must not be based on a generic exception class to prevent catching it unintentionally. */
class
TestsStalled
{};
protected
:
...
...
This diff is collapsed.
Click to expand it.
src/Application.cc
+
1
−
3
View file @
ec496afd
...
...
@@ -926,9 +926,7 @@ void Application::testableModeLock(const std::string& name) {
std
::
cout
<<
std
::
endl
;
}
}
// throw an exception which cannot be caught (other than with catch all). This makes sure that the tests fail
// properly
class
TestsStalled
{};
// throw a specialised exception to make sure whoever catches it really knows what he does...
throw
TestsStalled
();
}
}
...
...
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