diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/print-tests.el | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/src/print-tests.el b/test/src/print-tests.el index af57311135b..036248fd091 100644 --- a/test/src/print-tests.el +++ b/test/src/print-tests.el | |||
| @@ -540,5 +540,23 @@ otherwise, use a different charset." | |||
| 540 | (should (eq callback-buffer buffer)) | 540 | (should (eq callback-buffer buffer)) |
| 541 | (should (equal str "tata")))) | 541 | (should (equal str "tata")))) |
| 542 | 542 | ||
| 543 | (ert-deftest test-print-number-realloc () | ||
| 544 | ;; Test for bug#78590. Note that this may in rare cases crash unfixed | ||
| 545 | ;; Emacs versions. | ||
| 546 | (let ((print-circle t) | ||
| 547 | (print-number-table (make-hash-table)) | ||
| 548 | (print-continuous-numbering t) | ||
| 549 | (str "yy") | ||
| 550 | (outstr "")) | ||
| 551 | (garbage-collect) | ||
| 552 | (ignore (make-string 100 ?a)) | ||
| 553 | (puthash str (make-string 3 ?x) print-number-table) | ||
| 554 | (prin1 str | ||
| 555 | (lambda (c) | ||
| 556 | (setq outstr (concat outstr (string c))) | ||
| 557 | (garbage-collect) | ||
| 558 | (ignore (make-string 100 ?b)))) | ||
| 559 | (should (equal outstr "xxx")))) | ||
| 560 | |||
| 543 | (provide 'print-tests) | 561 | (provide 'print-tests) |
| 544 | ;;; print-tests.el ends here | 562 | ;;; print-tests.el ends here |