changeset 16780:781916090eb1

Restore dassl tolerance after running %! tests (bug #36137). * libinterp/corefcn/dassl.cc: Save and restore default tolerance after running %!tests for dassl_options.
author Rik <rik@octave.org>
date Wed, 19 Jun 2013 18:04:19 -0700
parents 8fce0ed4894a
children e88c14f4dbb2
files libinterp/corefcn/dassl.cc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/dassl.cc	Thu Jun 20 02:17:25 2013 +0200
+++ b/libinterp/corefcn/dassl.cc	Wed Jun 19 18:04:19 2013 -0700
@@ -558,8 +558,11 @@
 %! assert (x, y, tol);
 
 %!test
+%! old_tol = dassl_options ("absolute tolerance");
 %! dassl_options ("absolute tolerance", eps);
 %! assert (dassl_options ("absolute tolerance") == eps);
+%! ## Restore old value of tolerance
+%! dassl_options ("absolute tolerance", old_tol);
 
 %!error dassl_options ("foo", 1, 2)
 */