about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorArun Isaac2026-10-03 13:21:46 +0100
committerArun Isaac2026-10-03 13:21:46 +0100
commitaca6124cfda889148aa6f8919fa183dedbc63fd1 (patch)
treed42d28bf9a47e2f527ebc3797705e4c7e9dfcb06 /tests
parent7b4221ba7033612434f95c92880df8cf4cf125e5 (diff)
downloadguile-xapian-aca6124cfda889148aa6f8919fa183dedbc63fd1.tar.gz
guile-xapian-aca6124cfda889148aa6f8919fa183dedbc63fd1.tar.lz
guile-xapian-aca6124cfda889148aa6f8919fa183dedbc63fd1.zip
Restore null character handling test.
With the new std_string_view.i, the test no longer crashes the test
runner process.
Diffstat (limited to 'tests')
-rw-r--r--tests/smoketest.scm14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/smoketest.scm b/tests/smoketest.scm
index b7a84b8..5a7dd16 100644
--- a/tests/smoketest.scm
+++ b/tests/smoketest.scm
@@ -81,14 +81,12 @@ after."
 
 ;; scm_to_stringn does not allow strings containing null characters to
 ;; be converted to C strings. So, this test can never actually pass.
-;; And, we keep it commented out because running it raises an
-;; exception and crashes the test runner process.
-;; (test-expect-fail "document does not transparently handle a zero byte")
-;; (let* ((data "a\0b")
-;;        (doc (make-document #:data data)))
-;;   (test-equal "document does not transparently handle a zero byte"
-;;     data
-;;     (document-data (make-document #:data data))))
+(test-expect-fail "document does not transparently handle a zero byte")
+(let* ((data "a\0b")
+       (doc (make-document #:data data)))
+  (test-equal "document does not transparently handle a zero byte"
+    data
+    (document-data (make-document #:data data))))
 
 (call-with-temporary-writable-database "/tmp/xapian-db"
   (lambda (db)