diff options
Diffstat (limited to 'tests/test')
-rw-r--r-- | tests/test/script/runner/driver.cxx | 5 | ||||
-rw-r--r-- | tests/test/script/runner/testscript | 9 |
2 files changed, 11 insertions, 3 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&) { diff --git a/tests/test/script/runner/testscript b/tests/test/script/runner/testscript index 292e8ec..c95ed07 100644 --- a/tests/test/script/runner/testscript +++ b/tests/test/script/runner/testscript @@ -2,8 +2,6 @@ # copyright : Copyright (c) 2014-2016 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file -#$* -o foo <<<aaa >>>&bbb 2>>>ccc - $* # status-def $* == 0 # status-eq-0 $* -s 1 != 0 # status-ne-0 @@ -110,3 +108,10 @@ $* -i 1 <<:EOI >>:EOO # no-newline-nl-cont-doc EOI EOO + +$* -o foo >>>out; # file-redirect +$* -e bar 2>>>&out; +$* -i 1 <<<out >>EOO +foo +bar +EOO |