slightly prettier error handling in testWrap

release/4.3a0
Alex Cunningham 2010-07-14 14:06:26 +00:00
parent b2a0356965
commit c19a404ae2
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ TEST( wrap, parse ) {
CHECK(m1.args.size()==0); CHECK(m1.args.size()==0);
CHECK(m1.is_const); CHECK(m1.is_const);
} catch (CantOpenFile e) { } catch (exception& e) {
FAIL(e.what()); FAIL(e.what());
} }
} }
@ -91,7 +91,7 @@ TEST( wrap, matlab_code ) {
CHECK(files_equal("expected/@Test/print.cpp" , "actual/@Test/print.cpp" )); CHECK(files_equal("expected/@Test/print.cpp" , "actual/@Test/print.cpp" ));
CHECK(files_equal("expected/make_geometry.m" , "actual/make_geometry.m" )); CHECK(files_equal("expected/make_geometry.m" , "actual/make_geometry.m" ));
} catch (CantOpenFile e) { } catch (exception& e) {
FAIL(e.what()); // fails if file is in wrong place FAIL(e.what()); // fails if file is in wrong place
} }
} }