\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "Barcheck failed got ~a expect ~a") 3 15)
\header {
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "stem does not fit in beam"))
+#(ly:expect-warning (_ "beam was started here"))
\header {
texidoc= "Quarter notes may be beamed: the beam is halted momentarily."
+#(ly:expect-warning (_ "stray UTF-8 BOM encountered"))
#(ly:set-option 'warning-as-error #f)
\version "2.15.9"
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "unknown clef type `~a'") "foo")
+% We don't need to match the whole list of clefs, the beginning will suffice
+#(ly:expect-warning (_ "supported clefs: ~a") "C F G G2")
\header {
texidoc = "Unknown clef name warning displays available clefs"
+\version "2.14.0"
+#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "forced break was overridden by some other event, should you be using bar checks?"))
+
\header {
texidoc = "Glissandi are not broken. Here a @code{\\break} is ineffective.
Use @code{breakable} grob property to override."
}
-\version "2.14.0"
+
\layout {
ragged-right = ##t
}
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "Harp pedal diagram contains dividers at positions ~a. Normally, there is only one divider after the third pedal.") '(1 3 5))
+#(ly:expect-warning (_ "Harp pedal diagram contains dividers at positions ~a. Normally, there is only one divider after the third pedal.") '(4))
+#(ly:expect-warning (_ "Harp pedal diagram contains ~a pedals rather than the usual 7.") 5)
+#(ly:expect-warning (_ "Harp pedal diagram does not contain a divider (usually after third pedal)."))
+
\header {
texidoc = "The harp-pedal markup function does some sanity checks. All
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "Harp pedal diagram contains ~a pedals rather than the usual 7.") 0)
+#(ly:expect-warning (_ "Harp pedal diagram does not contain a divider (usually after third pedal)."))
+#(ly:expect-warning (_ "Harp pedal diagram contains ~a pedals rather than the usual 7.") 1)
+#(ly:expect-warning (_ "Harp pedal diagram does not contain a divider (usually after third pedal)."))
+#(ly:expect-warning (_ "Unhandled entry in harp-pedal: ~a" ) "a")
+#(ly:expect-warning (_ "Unhandled entry in harp-pedal: ~a" ) "s")
+#(ly:expect-warning (_ "Unhandled entry in harp-pedal: ~a" ) "d")
+#(ly:expect-warning (_ "Unhandled entry in harp-pedal: ~a" ) "f")
+#(ly:expect-warning (_ "Unhandled entry in harp-pedal: ~a" ) "x")
+
\header {
texidoc = "Basic harp diagram functionality, including circled pedal boxes.
\version "2.15.11"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "Recursive definition of property ~a detected!") 'header:title)
+#(ly:expect-warning (_ "Recursive definition of property ~a detected!") 'header:composer)
\header {
texidoc = "Cyclic references in header fields should cause a warning, but
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "adding note head to incompatible stem (type = %d/%d)") 1 1)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "maybe input should specify polyphonic voices"))
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "adding note head to incompatible stem (type = %d/%d)") 1 8)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "maybe input should specify polyphonic voices"))
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "adding note head to incompatible stem (type = %d/%d)") 4 1)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "maybe input should specify polyphonic voices"))
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "adding note head to incompatible stem (type = %d/%d)") 1 1)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "maybe input should specify polyphonic voices"))
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "adding note head to incompatible stem (type = %d/%d)") 1 4)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "maybe input should specify polyphonic voices"))
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "adding note head to incompatible stem (type = %d/%d)") 1 1)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "maybe input should specify polyphonic voices"))
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "adding note head to incompatible stem (type = %d/%d)") 1 4)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "maybe input should specify polyphonic voices"))
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "adding note head to incompatible stem (type = %d/%d)") 1 8)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "maybe input should specify polyphonic voices"))
+
\header {
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "No such instrument: ~a") "bassClar")
\header {
texidoc = "The @code{switchInstrument} music function prints a warning if
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "unknown translator: `%s'") "Rhythmic_column_engraver_foo")
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "cannot find: `%s'") "Rhythmic_column_engraver_foo")
\header {
texidoc = "Engravers which do not exist produce a warning."
\version "2.15.9"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "Test warning\n"))
+#(ly:expect-warning (_ "already have slur"))
\header{
texidoc="
\version "2.15.5"
+#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "cannot find Voice `%s'") "not-existing-notes")
+
\header {
texidoc = "If lyrics are assigned to a non-existing voice, a warning should
}
-#(ly:set-option 'warning-as-error #f)
<<
\new Staff
\new Voice = "notes" {
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "no brace found for point size ~S ") 10)
+#(ly:expect-warning (_ "defaulting to ~S pt") 10.5)
\header {
texidoc = "If @code{\\left-brace} or @code{\\right-brace} cannot
\version "2.15.11"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "Cyclic markup detected: %s") 'cycle-markup)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "Cyclic markup detected: %s") 'cycleI-markup)
\header {
texidoc = "Cyclic markup definitions should cause a warning, but
\version "2.15.12"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "Markup depth exceeds maximal value of %d; Markup: %s") 1024 "recursive-explosion-markup")
\header {
texidoc = "Markups have a maximum depth to prevent non-termination."
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "Cannot find glyph ~a") "UNKNOWN-GLYPH")
\header {
texidoc = "Reset fontname for musicglyph.
+\version "2.14.0"
+
+#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "forced break was overridden by some other event, should you be using bar checks?"))
+#(ly:expect-warning (_ "forced break was overridden by some other event, should you be using bar checks?"))
\header {
}
-\version "2.14.0"
-
\new Staff {
c'1 \glissando
\pageBreak
\version "2.14.0"
+#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "cannot find line breaking that satisfies constraints"))
\header {
texidoc = "Page breaking doesn't crash when the line-breaking
\version "2.14.0"
+#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "cannot fit the first page turn onto a single page. Consider setting first-page-number to an even number."))
\header {
texidoc="If there are no good places to have a page turn,
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "margins do not fit with line-width, setting default values"))
\header {
texidoc = "Margin values must fit the line-width, that means: paper-width =
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "systems run off the page due to improper paper settings, setting default values"))
\header {
texidoc = "Normally, margin settings must not cause systems to run off the page."
\version "2.15.4"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "already have phrasing slur"))
+#(ly:expect-warning (_ "cannot end phrasing slur"))
\header {
texidoc = "LilyPond does not support multiple concurrent phrasing slurs with the
\version "2.14.0"
+#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "More alternatives than repeats. Junking excess alternatives"))
+
\header{
texidoc="LilyPond has two modes for repeats: unfolded and semi-unfolded.
Unfolded repeats are fully written out. Semi unfolded repeats have the body
Unfolded behavior:"
}
-#(ly:set-option 'warning-as-error #f)
-
\context Voice \relative c'' {
\repeat unfold 3 { c^"3x 0a" d }
%% less alts than body
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "More alternatives than repeats. Junking excess alternatives"))
\header{
texidoc="
\version "2.14.0"
+#(ly:expect-warning (_ "didn't find a vertical alignment in this system"))
+#(ly:expect-warning (_ "didn't find a vertical alignment in this system"))
+#(ly:expect-warning (_ "didn't find a vertical alignment in this system"))
+#(ly:expect-warning (_ "didn't find a vertical alignment in this system"))
+#(ly:expect-warning (_ "didn't find a vertical alignment in this system"))
+#(ly:expect-warning (_ "didn't find a vertical alignment in this system"))
+#(ly:expect-warning (_ "system with empty extent"))
+#(ly:expect-warning (_ "didn't find a vertical alignment in this system"))
\header{
texidoc = "
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "barcheck failed at: %s") "3/4")
\header {
\version "2.15.5"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "already have slur"))
\header {
texidoc = "An additional opening slur during a running slur should be ignored
\version "2.15.5"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "already have slur"))
+#(ly:expect-warning (_ "cannot end slur"))
\header {
texidoc = "LilyPond does not support multiple concurrent slurs with the
-\header
-{
+\version "2.14.0"
+
+#(ly:expect-warning (_ "Cannot determine neighbors for floating column. "))
+#(ly:expect-warning (_ "Loose column does not have right side to attach to."))
+#(ly:expect-warning (_ "Loose column does not have right side to attach to."))
+
+\header {
texidoc = "Even in case of incorrect contexts (eg. shortlived
contexts) that break linking of columns through spacing wishes,
}
-\version "2.14.0"
-
%% \new Staff cause shortlived, disconnected Voice contexts
%% breaking spacing-wishes links.
\score {
-
\version "2.14.0"
+
+#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "tremolo duration is too long"))
+#(ly:expect-warning (_ "tremolo duration is too long"))
+
\header{
texidoc="
Stem tremolos or rolls are tremolo signs that look like beam segments
The tremolos should be positioned a fixed distance from the end of the
stems unless there is no stem, in which case they should be positioned
a fixed distance from the note head.
+
+If an impossible tremolo duration (e.g. :4) is given, a warning is
+printed.
"
}
-#(ly:set-option 'warning-as-error #f)
-
\context Voice \relative c''{
\textSpannerUp
\override TextScript #'padding = #5
+ % The following note should print a warning (quarter tremolo cannot be notated)
a1:4^":4" a:8^":8" c:16^":16" a:32^":32" a^"x" a:^":"
a':32 a,,:32
+ % The following note should print a warning (quarter tremolo cannot be notated)
a'4:4 c:8 a:16 c:32 a a: a2:
\break
\stemUp
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "Requested string for pitch requires negative fret: string ~a pitch ~a") 1 "#<Pitch c' >")
+#(ly:expect-warning (_ "Ignoring string request and recalculating."))
+#(ly:expect-warning (_ "Negative fret for pitch ~a on string ~a") "#<Pitch c' >" 1)
+#(ly:expect-warning (_ "Requested string for pitch requires negative fret: string ~a pitch ~a") 1 "#<Pitch c' >")
+#(ly:expect-warning (_ "Ignoring note in tablature."))
+
+
+
+% #(ly:expect-warning (ly:translate-cpp-warning-scheme "Markup depth exceeds maximal value of %d; Markup: %s") 1024 "recursive-explosion-markup")
\header {
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "No open string for pitch ~a") "#<Pitch f >")
\header {
texidoc="
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "unterminated tie"))
+#(ly:expect-warning (_ "unterminated tie"))
\header
{
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "unterminated tie"))
\header {
texidoc = "When a tie is followed only by unmatching notes and the tie cannot
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "Two simultaneous %s events, junking this one") "key-change")
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "Previous %s event here") "key-change")
\header {
texidoc = "If you specify two different key signatures at one point, a
--- /dev/null
+\version "2.15.13"
+
+#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (_ "this is a warning that won't be triggered"))
+
+\header {
+ texidoc = "If a warning is expected, but not triggered, print out a
+warning about this fact. This will be used to detect missing warnings
+in our regtests."
+}
+
+\relative c' { c4 }
\version "2.14.0"
#(ly:set-option 'warning-as-error #f)
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "unterminated %s") "crescendo")
+#(ly:expect-warning (ly:translate-cpp-warning-scheme "unterminated %s") "decrescendo")
\header {
texidoc = "A warning is printed if a dynamic spanner is