From 5255fa452f338c2ae97fa1ade70b396513bc6e9b Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 29 May 2022 18:09:08 -0400 Subject: bindat (strz): Fix wrong-type-argument error when unpacking * lisp/emacs-lisp/bindat.el (strz): Fix (wrong-type-argument number-or-marker-p nil) error when unpacking a strz with unspecified (variable) length. * test/lisp/emacs-lisp/bindat-tests.el (strz): Mark test as passing. --- test/lisp/emacs-lisp/bindat-tests.el | 1 - 1 file changed, 1 deletion(-) (limited to 'test/lisp/emacs-lisp') diff --git a/test/lisp/emacs-lisp/bindat-tests.el b/test/lisp/emacs-lisp/bindat-tests.el index cb7b6fe1c20..b3850f14f17 100644 --- a/test/lisp/emacs-lisp/bindat-tests.el +++ b/test/lisp/emacs-lisp/bindat-tests.el @@ -199,7 +199,6 @@ (should (equal (bindat-pack spec "abc") "abc\0"))) (ert-deftest bindat-test--strz-varlen-unpack () - :expected-result :failed ;; There is no test for unpacking a string without a null ;; terminator because such packed strings cannot be produced from ;; the spec (packing "a" should produce "a\0", not "a"). -- cgit v1.2.3