diff options
author | Michael Riss <Michael.Riss@gmx.de> | 2013-02-28 12:10:12 +0100 |
---|---|---|
committer | Michael Riss <Michael.Riss@gmx.de> | 2013-02-28 12:10:12 +0100 |
commit | 6ba1c5d72bcbbbb8a0dd8100384a367a4c3683f4 (patch) | |
tree | 86a7a8d80d22c5c9f8879cbd12d4fcdaf399299c /tests/runner.py | |
parent | 8967ffb2faa23fdaac8179cc3ff379dc984fc09c (diff) |
added missing test case
must have gotten lost in the rebasing operation ...
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 9cf40543..342fdb9e 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -5078,6 +5078,22 @@ at function.:blag } ''' self.do_run(src, '22 : me and myself 25 1.34\n21 waka 95\n') + + def test_perror(self): + src = r''' + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> + #include <stdio.h> + + int main( int argc, char** argv ){ + int retval = open( "NonExistingFile", O_RDONLY ); + if( retval == -1 ) + perror( "Cannot open NonExistingFile" ); + return 0; + } + ''' + self.do_run(src, 'Cannot open NonExistingFile: No such file or directory\n') def test_atoX(self): if self.emcc_args is None: return self.skip('requires ta2') |