aboutsummaryrefslogtreecommitdiff
path: root/tests/test-chime-sound.el
Commit message (Collapse)AuthorAgeFilesLines
* test: assert on chime's messages, not on Emacs staying silentCraig Jennings2026-07-091-8/+20
| | | | | | | | Three sound tests mocked message and counted everything it captured. Under make coverage, chime.el loads as instrumented source, so the sentinel lambda compiles on first call and emits "Warning: argument '_event' not left unused" through message. That warning landed in the capture list, the counts came out one high, and the Coverage job failed while all five Emacs versions passed. The tests now filter captured messages to chime's own. What they mean is that chime reported the failure once, not that nothing in Emacs said anything. make test and make test-all never load the instrumented source, so they can't catch this. make coverage reproduces it.
* test: add failing tests for external sound-player selectionCraig Jennings2026-07-091-0/+301
The tests cover player selection, asynchronous spawn, the fallback to play-sound-file, DEVICE passthrough, the exit-status sentinel, and both players failing. I mock play-sound-file everywhere, so no test opens an audio device. Two tests spawn true or false as a stand-in player, because neither the returned process nor the sentinel's exit status survives a mock.