1\version "2.21.8"
2
3\header {
4  texidoc = "LilyPond does not render zero-duration scores.  This test
5should produce neither MIDI nor visual output."
6}
7
8#(ly:set-option 'warning-as-error #t)
9%% once per \layout or \midi
10#(ly:expect-warning (_ "skipping zero-duration score"))
11#(ly:expect-warning (_ "to suppress this, consider adding a spacer rest"))
12
13#(ly:expect-warning (_ "skipping zero-duration score"))
14#(ly:expect-warning (_ "to suppress this, consider adding a spacer rest"))
15
16#(ly:expect-warning (_ "skipping zero-duration score"))
17#(ly:expect-warning (_ "to suppress this, consider adding a spacer rest"))
18
19#(ly:expect-warning (_ "skipping zero-duration score"))
20#(ly:expect-warning (_ "to suppress this, consider adding a spacer rest"))
21
22\score {
23  { s1*0 }
24  \layout {}
25}
26
27\score {
28  << \new Voice {} >>
29  \midi {}
30}
31
32\score {
33  { \new Voice {} }
34  \layout {}
35  \midi {}
36}
37