[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/01: Fix test suite for constant literals change
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/01: Fix test suite for constant literals change |
Date: |
Wed, 19 Apr 2017 03:40:06 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 5c6b3c5169d15f99676b16a2e619560ea18f59d6
Author: Andy Wingo <address@hidden>
Date: Wed Apr 19 09:26:11 2017 +0200
Fix test suite for constant literals change
* test-suite/tests/elisp-compiler.test ("List Built-Ins"): Avoid
mutating a literal pair. If this turns out to be necessary for elisp,
the compiler will have to compile literals to calls to run-time heap
allocations rather than constants.
---
test-suite/tests/elisp-compiler.test | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test-suite/tests/elisp-compiler.test
b/test-suite/tests/elisp-compiler.test
index ddfa80a..1157afb 100644
--- a/test-suite/tests/elisp-compiler.test
+++ b/test-suite/tests/elisp-compiler.test
@@ -621,7 +621,7 @@
(and (equal (reverse '(5 4 3 2 1)) '(1 2 3 4 5))
(equal (reverse '()) '())))
(pass-if "setcar and setcdr"
- (progn (setq pair '(1 . 2))
+ (progn (setq pair (cons 1 2))
(setq copy pair)
(setq a (setcar copy 3))
(setq b (setcdr copy 4))