Commit 4b0c0a52 authored by Henry Weller's avatar Henry Weller
Browse files

Test-error: Updated to use test the new "...InFunction" macros

parent 4731fa5c
......@@ -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;
WarningInFunction << "warning 1" << endl;
IOWarningInFunction(Serr) << "warning 2" << endl;
dictionary dict;
IOWarningIn("main", dict) << "warning 3" << endl;
FatalErrorIn("main") << "error 1" << endl;
FatalErrorIn("main") << "error 2" << exit(FatalError);
FatalErrorInFunction << "error 1" << endl;
FatalErrorInFunction << "error 2" << exit(FatalError);
}
catch (Foam::error& fErr)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment