Diff of /tests/alien.impure.lisp [4993cd] .. [1100ef]  Maximize  Restore

Switch to side-by-side view

--- a/tests/alien.impure.lisp
+++ b/tests/alien.impure.lisp
@@ -319,4 +319,10 @@
                                     '(alien (c-string :not-null t))))
                     :ok))))))
 
+(with-test (:name :make-alien-string)
+  (let ((alien (sb-alien::make-alien-string "This comes from lisp!")))
+    (gc :full t)
+    (assert (equal "This comes from lisp!" (cast alien c-string)))
+    (free-alien alien)))
+
 ;;; success

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks