summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Llorens <lloda@sarc.name>2022-10-03 12:19:58 +0200
committerDaniel Llorens <lloda@sarc.name>2022-10-03 12:19:58 +0200
commit584ba588e5ce833d952cdff1d4132db2da784735 (patch)
treebfd2c43dd3f77462ff3d6512d2212a5ad0f447d8
parent45cc892fe3719bf0fc53ef927eec71854264a95d (diff)
downloadguile-584ba588e5ce833d952cdff1d4132db2da784735.tar.gz
Test for out of range depth in fluid-ref*
Test for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58154, which was fixed in c0004442b7691f59a0e37869ef288eb26382ad9e.
-rw-r--r--test-suite/tests/fluids.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/test-suite/tests/fluids.test b/test-suite/tests/fluids.test
index 949d50410..0fc8cbe16 100644
--- a/test-suite/tests/fluids.test
+++ b/test-suite/tests/fluids.test
@@ -140,6 +140,10 @@
(gc)
(fluid? (g))))
+(pass-if-exception "fluid-ref* depth must be nonnegative"
+ exception:out-of-range
+ (fluid-ref* (make-fluid) -1))
+
(with-test-prefix "with-fluids"
(pass-if "with-fluids binds"