[test] adjust bad -O1/-O2 test regex

with the new fullharness settings there is no space before -O1 anymore.
Fixes GH #1086