Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
4b0c0a52
Commit
4b0c0a52
authored
Nov 07, 2015
by
Henry Weller
Browse files
Test-error: Updated to use test the new "...InFunction" macros
parent
4731fa5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/test/error/Test-error.C
View file @
4b0c0a52
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2015
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -40,15 +40,15 @@ int main(int argc, char *argv[])
try
{
WarningIn
(
"main"
)
<<
"warning 1"
<<
endl
;
IOWarningIn
(
"main"
,
Serr
)
<<
"warning 2"
<<
endl
;
WarningIn
Function
<<
"warning 1"
<<
endl
;
IOWarningIn
Function
(
Serr
)
<<
"warning 2"
<<
endl
;
dictionary
dict
;
IOWarningIn
(
"main"
,
dict
)
<<
"warning 3"
<<
endl
;
FatalErrorIn
(
"main"
)
<<
"error 1"
<<
endl
;
FatalErrorIn
(
"main"
)
<<
"error 2"
<<
exit
(
FatalError
);
FatalErrorIn
Function
<<
"error 1"
<<
endl
;
FatalErrorIn
Function
<<
"error 2"
<<
exit
(
FatalError
);
}
catch
(
Foam
::
error
&
fErr
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment