From pat at nklein.com Wed May 16 03:34:26 2012 From: pat at nklein.com (Patrick Stein) Date: Tue, 15 May 2012 22:34:26 -0500 Subject: [trivial-backtrace-devel] Problem with test on some compilers... Message-ID: The trivial-backtrace-test package defines a GENERATES-BACKTRACE lift test. That test attempts to create a DIVISION-BY-ZERO error. However, SBCL notices that the return value of the division is not used and deletes the division. Stopping it from doing so only requires a '(declare (optimize (safety 3)))'. This will allow the test to succeed even under SBCL. Below is a patch to the current quicklisp version of TRIVIAL-BACKTRACE. Thanks, Patrick diff -c old/tests.lisp new/tests.lisp *** old/tests.lisp 2012-05-15 22:28:36.000000000 -0500 --- new/tests.lisp 2012-05-15 22:27:46.000000000 -0500 *************** *** 9,14 **** --- 9,15 ---- (handler-case (let ((x 1)) (let ((y (- x (expt 1024 0)))) + (declare (optimize (safety 3))) (/ 2 y))) (error (c) (setf output (print-backtrace c :output nil)))) From gwking at metabang.com Wed May 16 12:40:12 2012 From: gwking at metabang.com (Gary King) Date: Wed, 16 May 2012 08:40:12 -0400 Subject: [trivial-backtrace-devel] Problem with test on some compilers... In-Reply-To: References: Message-ID: Thanks. Just pushed. -- Gary Warren King, metabang.com Cell: (413) 559 8738 Fax: (206) 338-4052 gwkkwg on Skype * garethsan on AIM * gwking on twitter