diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-10-26 12:32:46 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:36 +0200 |
commit | 5daf46f700217521e8ba90c4be0e0369105544df (patch) | |
tree | 5ef8e2102aebd0383c1f000512151571c6edb38d /tests/test/script/runner/driver.cxx | |
parent | 43378e3827fd0d17325646c40c76bab9db1da19a (diff) |
Add support of file redirects to testscript runner
Diffstat (limited to 'tests/test/script/runner/driver.cxx')
-rw-r--r-- | tests/test/script/runner/driver.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test/script/runner/driver.cxx b/tests/test/script/runner/driver.cxx index 9eb36a0..fdada73 100644 --- a/tests/test/script/runner/driver.cxx +++ b/tests/test/script/runner/driver.cxx @@ -34,7 +34,10 @@ main (int argc, char* argv[]) { try { - return stoi (s); + size_t n; + int r (stoi (s, &n)); + assert (n == s.size ()); + return r; } catch (const exception&) { |