testsuite: fix exiting with success on no output activity
authorLucas De Marchi <lucas.demarchi@intel.com>
Sat, 21 Feb 2015 15:07:42 +0000 (13:07 -0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sat, 21 Feb 2015 15:15:38 +0000 (13:15 -0200)
commit03a5079f620982995ac1416540ba7e3c54121f7c
treea9e084a75c56338c028fbef2f350012681be7964
parent7efa3502dd97b91eefcdbce154c97cb371bd17fa
testsuite: fix exiting with success on no output activity

If we were expecting output on stdout or stderr but the test didn't
produce any, we were incorrectly assuming the test was successful.
Now test on exit if there was activity on the monitored fd. If there
was, check also if the file size to check for output is > 0 for the
cases in which we want to assert there was no activity on certain fd.
testsuite/testsuite.c