Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-xt
Commits
f37a905c
Commit
f37a905c
authored
10 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[test.main] update info and exception switches
parent
fec6eb50
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/stuff/test/main.hxx
+10
-3
10 additions, 3 deletions
dune/stuff/test/main.hxx
with
10 additions
and
3 deletions
dune/stuff/test/main.hxx
+
10
−
3
View file @
f37a905c
...
@@ -5,6 +5,13 @@
...
@@ -5,6 +5,13 @@
#include
"config.h"
#include
"config.h"
#ifndef DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS
#define DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS 0
#endif
#ifndef DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING
#define DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING 0
#endif
#include
<string>
#include
<string>
#include
<vector>
#include
<vector>
#include
<map>
#include
<map>
...
@@ -54,7 +61,7 @@ std::vector<double> DUNE_DEPRECATED_MSG("Use the expectation macros of the gtest
...
@@ -54,7 +61,7 @@ std::vector<double> DUNE_DEPRECATED_MSG("Use the expectation macros of the gtest
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
#if
def
DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS
#if DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS
try
{
try
{
#endif
#endif
...
@@ -67,7 +74,7 @@ int main(int argc, char** argv)
...
@@ -67,7 +74,7 @@ int main(int argc, char** argv)
#endif
#endif
DSC
::
Logger
().
create
(
DSC
::
Logger
().
create
(
#if
def
DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING
#if DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING
DSC
::
LOG_CONSOLE
|
DSC
::
LOG_INFO
|
DSC
::
LOG_ERROR
DSC
::
LOG_CONSOLE
|
DSC
::
LOG_INFO
|
DSC
::
LOG_ERROR
#else
#else
DSC
::
LOG_CONSOLE
|
DSC
::
LOG_ERROR
DSC
::
LOG_CONSOLE
|
DSC
::
LOG_ERROR
...
@@ -79,7 +86,7 @@ int main(int argc, char** argv)
...
@@ -79,7 +86,7 @@ int main(int argc, char** argv)
return
RUN_ALL_TESTS
();
return
RUN_ALL_TESTS
();
#if
def
DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS
#if DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS
}
catch
(
Dune
::
Exception
&
e
)
{
}
catch
(
Dune
::
Exception
&
e
)
{
std
::
cerr
<<
"
\n
Dune reported error: "
<<
e
.
what
()
<<
std
::
endl
;
std
::
cerr
<<
"
\n
Dune reported error: "
<<
e
.
what
()
<<
std
::
endl
;
std
::
abort
();
std
::
abort
();
...
...
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