test_task_runsinglethread spawns a thread which intends to do no I/O,
and checks that its rchar io value is 0. However, glibc sometimes
reads from /sys/devices/system/cpu/online, which sometimes happens on
this thread, and that causes a non-zero rchar value. The fix here is
to only require rchar to be less than the number of bytes that the
other thread reads. Also, check that read_bytes returns 0 since it
doesn't include bytes read from sysfs, and check that wchar is 0.
test_task_runsinglethread
spawns a thread which intends to do no I/O, and checks that itsrchar
io value is 0. However, glibc sometimes reads from /sys/devices/system/cpu/online, which sometimes happens on this thread, and that causes a non-zerorchar
value. The fix here is to only requirerchar
to be less than the number of bytes that the other thread reads. Also, check thatread_bytes
returns 0 since it doesn't include bytes read from sysfs, and check thatwchar
is 0.