diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-27 23:43:56 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-29 12:57:33 -0700 |
commit | fe3533636b24c23fb904f3ca94425003c0565177 (patch) | |
tree | 23ab00295c6a18f00c01690c50de9f53649d6e84 /tests/test_core.py | |
parent | 4d41dc3fa572f89249749c4b7a37864c99018004 (diff) |
- added tests for tcgetattr / tcsetattr
- made test_stdin async to work in the node environment
- clearerr should reset both eof and error indicators
- fgetc was incorrectly setting the eof indicator. in cases where fread had errored with EAGAIN it was setting eof. I removed the set entirely, as there is no need for fgetc to even worry about it, fread will set the correct value in any case
Diffstat (limited to 'tests/test_core.py')
-rw-r--r-- | tests/test_core.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 17707c44..51face6a 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -4670,6 +4670,10 @@ The current type of b is: 9 expected = open(path_from_root('tests', 'pthread', 'specific.c.txt'), 'r').read() self.do_run(src, expected, force_c=True) + def test_tcgetattr(self): + src = open(path_from_root('tests', 'termios', 'test_tcgetattr.c'), 'r').read() + self.do_run(src, 'success', force_c=True) + def test_time(self): # XXX Not sure what the right output is here. Looks like the test started failing with daylight savings changes. Modified it to pass again. src = open(path_from_root('tests', 'time', 'src.c'), 'r').read() |