robustify ONLY-ONE-BOXED-CONSTANT-FOR-MULTIPLE-USES test
authorNikodemus Siivola <nikodemus@random-state.net>
Thu, 8 Dec 2011 15:54:39 +0000 (17:54 +0200)
committerNikodemus Siivola <nikodemus@random-state.net>
Thu, 8 Dec 2011 15:56:23 +0000 (17:56 +0200)
  Was broken on x86 due to test fragility.

tests/compiler.pure.lisp

index 4bdde67..ed4d708 100644 (file)
          (fun (compile nil
                        `(lambda (x)
                           (unknown-fun ,big (+ ,big x))))))
-    (assert (equal (list 0 (1+ most-positive-fixnum))
-                   (ctu:find-code-constants fun :type 'integer)))))
+    (assert (= 1 (length (ctu:find-code-constants fun :type '(eql ,big)))))))
 
 (with-test (:name :fixnum+float-coerces-fixnum
             :skipped-on :x86)