From 4036ce1f39d678e21593c2c99c963fdb66e85eba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano-Tarumi?= <fmang@mg0.fr> Date: Mon, 17 Dec 2018 20:58:39 -0500 Subject: [PATCH] t: print errors on stderr That way, they're shown by the prove command. That's what the Perl test suite does too. --- t/tap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/tap.h b/t/tap.h index b75c044..d77ac19 100644 --- a/t/tap.h +++ b/t/tap.h @@ -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"; }