t: print errors on stderr

That way, they're shown by the prove command.
That's what the Perl test suite does too.
This commit is contained in:
Frédéric Mangano-Tarumi 2018-12-17 20:58:39 -05:00
parent 28ecbecdf0
commit 4036ce1f39

View File

@ -22,7 +22,7 @@ static void run(F test, const char *name)
test();
ok = true;
} catch (failure& e) {
std::cout << "# " << e.what() << "\n";
std::cerr << "# " << e.what() << "\n";
}
std::cout << (ok ? "ok" : "not ok") << " - " << name << "\n";
}