tests: Make random tests more robust
commitd4239ee4a5f8c4a5e199fb462b25e4415a4c5d95
authorAlberto Bertogli <albertito@blitiri.com.ar>
Sun, 2 Aug 2015 14:33:00 +0000 (2 15:33 +0100)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Sun, 2 Aug 2015 22:46:09 +0000 (2 23:46 +0100)
tree97b28060cffa590acb4916198db16c65da31f213
parent3a43154e54a11f4db7b47c08eb38228ec0127049
tests: Make random tests more robust

Some of the tests which check the random operations depend on /bin/cat doing
I/O operations a certain way, which is not portable and not very accurate
either. This results in these tests occasionally failing without good reason.

To fix that, we introduce a small "cat" implementation with very simple and
predictable I/O, which we can rely upon in the tests.
.gitignore
tests/Makefile
tests/small-cat.c [new file with mode: 0644]
tests/test-fiu_ctrl.py