From 044e2e1c1460fb060f677a366144b98905522754 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 31 Jan 2017 22:08:38 +0300 Subject: Add sed builtin --- build2/test/script/runner.cxx | 38 ++------------------------------------ 1 file changed, 2 insertions(+), 36 deletions(-) (limited to 'build2/test/script/runner.cxx') diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx index dcfaec9..751daec 100644 --- a/build2/test/script/runner.cxx +++ b/build2/test/script/runner.cxx @@ -5,12 +5,11 @@ #include #include -#include // streamsize -#include // strstr() -#include +#include // streamsize #include // fdopen_mode, fdnull(), fddup() +#include #include #include @@ -21,39 +20,6 @@ using namespace std; using namespace butl; -namespace std -{ - // Print regex error description but only if it is meaningful (this is also - // why we have to print leading colon here). - // - // Currently libstdc++ just returns the name of the exception (bug #67361). - // So we check that the description contains at least one space character. - // - // While VC's description is meaningful, it has an undesired prefix that - // resembles the following: 'regex_error(error_badrepeat): '. So we skip it. - // - static ostream& - operator<< (ostream& o, const regex_error& e) - { - const char* d (e.what ()); - -#if defined(_MSC_VER) && _MSC_VER <= 1910 - const char* rd (strstr (d, "): ")); - if (rd != nullptr) - d = rd + 3; -#endif - - ostringstream os; - os << runtime_error (d); // Sanitize the description. - - string s (os.str ()); - if (s.find (' ') != string::npos) - o << ": " << s; - - return o; - } -} - namespace build2 { namespace test -- cgit v1.1