From d4eecda55cc543a5bf4f478d1a6d50a4c8a01ac4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Dec 2015 16:47:02 +0200 Subject: Add note on redirecting STDERR in cli test --- build/cli/module.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build') diff --git a/build/cli/module.cxx b/build/cli/module.cxx index 67e2137..de7d576 100644 --- a/build/cli/module.cxx +++ b/build/cli/module.cxx @@ -138,6 +138,10 @@ namespace build } catch (const process_error& e) { + // In some cases this is not enough (e.g., the runtime linker + // will print scary errors if some shared libraries are not + // found. So it would be good to redirect child's STDERR. + // if (!optional) error << "unable to execute " << cli << ": " << e.what (); -- cgit v1.1