Fix check_test bug where error/warning/info diagnostics where treated the same.
Fix check_test bug where error/warning/info diagnostics where treated the same.

When checking for met expectations the kind of diagnostic observed was
ignored. So a warning diagnostic could cause an expectation for a compiler error
to be considered met.

sheijk/Zomp,sheijk/Zomp,sheijk/Zomp,sheijk/Zomp,sheijk/Zomp