diff options
| author | Arun Isaac | 2026-10-03 13:21:46 +0100 |
|---|---|---|
| committer | Arun Isaac | 2026-10-03 13:21:46 +0100 |
| commit | aca6124cfda889148aa6f8919fa183dedbc63fd1 (patch) | |
| tree | d42d28bf9a47e2f527ebc3797705e4c7e9dfcb06 /tests | |
| parent | 7b4221ba7033612434f95c92880df8cf4cf125e5 (diff) | |
| download | guile-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.scm | 14 |
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) |
