summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2009-03-13 23:55:51 +0100
committerAndy Wingo <wingo@oblong.net>2009-03-17 16:46:43 +0100
commit1dcf33280d39c7b7366eae1083a287e2dea6a8ca (patch)
treed32061880a29490d4fb2ee36db0500beadece3a5
parentbb06fceef02a20ce42b069192eb45ddd9012e5ab (diff)
downloadguile-1dcf33280d39c7b7366eae1083a287e2dea6a8ca.tar.gz
procedure-arity on vm-compile apply: verily, unresolved.
* test-suite/tests/procprop.test ("procedure-arity"): Procedure-property 'arity on "apply" will fail if "apply" is a program. I suggest that procedure-property is actually the wrong interface for this; if we even want to preseve the old arity forms, we should have an accessor for arity directly that the VM can implement. But in the meantime throw this nasty error while we decide.
-rw-r--r--test-suite/tests/procprop.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/test-suite/tests/procprop.test b/test-suite/tests/procprop.test
index 5ab585058..40e89c792 100644
--- a/test-suite/tests/procprop.test
+++ b/test-suite/tests/procprop.test
@@ -44,7 +44,9 @@
'(1 0 #f)))
(pass-if "apply"
- (equal? (procedure-property apply 'arity)
+ (equal? (if ((@ (system vm program) program?) apply)
+ (throw 'unresolved)
+ (procedure-property apply 'arity))
'(1 0 #t)))
(pass-if "cons*"