tests: update for capitalized diagnostics
Ensure that newlines change the linestate when skipping junk.

Sometimes skipline() would skip meaningful characters without
letting skipcomment() look at them.

Reported-By: Christoph Schied <Christoph.Schied@kit.edu>