Skip to content

Commit

Permalink
Disable output buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
raxod502 committed May 27, 2024
1 parent 63064ee commit b282a91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/formatters/apheleia-ft.el
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ returned context."
formatter display-fname)))
(princ (format
"[format-test] success: formatter %s (file %s)\n"
formatter display-fname))))))
formatter display-fname))
;; https://stackoverflow.com/a/66558297
(set-binary-mode 'stdout nil)))))

(provide 'apheleia-ft)
2 changes: 1 addition & 1 deletion test/shared/run-func.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ exec emacs --batch -L . "$@" \
--eval "(setq debug-on-error t)" \
--eval "(setq backtrace-line-length 0)" \
-f "${func}" \
2>&1 | sed -E 's/^(.{640}).+$/\1...[truncated]/'
2>&1 | sed -uE 's/^(.{640}).+$/\1...[truncated]/'

0 comments on commit b282a91

Please sign in to comment.