Skip to content

Commit

Permalink
Pass function name to gtest_fail
Browse files Browse the repository at this point in the history
  • Loading branch information
octave-user committed May 12, 2024
1 parent bdc73ca commit 5a8dbf3
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion inst/numerical_tests_01.tst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_02.tst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_03.tst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_04.tst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_05.tst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_06.tst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_07.tst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_08.tst
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_09.tst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
%!error mumps([]);
Expand Down
2 changes: 1 addition & 1 deletion inst/numerical_tests_10.tst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_11.tst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
%!error umfpack([]);
Expand Down
2 changes: 1 addition & 1 deletion inst/numerical_tests_12.tst
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
%!error strumpack([]);
Expand Down
2 changes: 1 addition & 1 deletion inst/numerical_tests_13.tst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_14.tst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_15.tst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_16.tst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_17.tst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_18.tst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_19.tst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_20.tst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
%! end_unwind_protect
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_21.tst
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_22.tst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
%! endfor
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_23.tst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
%! endfor
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_24.tst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
%! endfor
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_25.tst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
%! endfor
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/numerical_tests_26.tst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
%! endif
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch
2 changes: 1 addition & 1 deletion inst/skew.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
%! end_unwind_protect
%! catch
%! gtest_error = lasterror();
%! gtest_fail(gtest_error);
%! gtest_fail(gtest_error, evalin("caller", "__file"));
%! rethrow(gtest_error);
%! end_try_catch

0 comments on commit 5a8dbf3

Please sign in to comment.