]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix linkage-errors test to not clobber its own linkage error
authorSlava Pestov <slava@factorcode.org>
Wed, 14 Sep 2011 08:07:45 +0000 (01:07 -0700)
committerSlava Pestov <slava@factorcode.org>
Mon, 3 Oct 2011 07:26:21 +0000 (00:26 -0700)
basis/compiler/tests/linkage-errors.factor

index 5742e5ae6d891f5e55025cfafe9e1df7b76473dc..98a07899f3f68360e31eca863cddb047bbedc61b 100644 (file)
@@ -19,7 +19,7 @@ FUNCTION: void this_does_not_exist ( ) ;
     \ this_does_not_exist linkage-errors get at error>>\r
     ! We don't care about the error message from dlerror, just\r
     ! wipe it out\r
-    f >>message\r
+    clone f >>message\r
 ] unit-test\r
 \r
 << "no_such_library" "no_such_library" cdecl add-library >>\r