criu/test/zdtm
Stanislav Kinsburskiy a58330a26b tests: do not try to read more than packet in AutoFS test
The intention was to make sure, that only one packet is sent at a time.
And thus read has to return exactly the size of one packet.

But it doesnt' work as expected, because size of autofs_v5_packet_union
differs on 32 bit and 64 bit architectures.

This is a bug, but it's hidden so deeply, that no one really cares by the
following 2 aspects:

 1) Autofs pipe has O_DIRECT flag, which means excess bytes will be discarded
    upon read.
 2) No one tries to read more than one packet size at a time.

So let's fix the test instead and do not try to read more bytes, than
expected.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-09-21 01:01:39 +03:00
..
lib s390/zdtm: Also support z900 (debian) 2017-08-09 18:51:41 +03:00
static tests: do not try to read more than packet in AutoFS test 2017-09-21 01:01:39 +03:00
transition test: add test that verifies proper intraction between lazy-pages and THP 2017-09-16 12:30:22 +03:00
.gitignore test/zdtm: unify common code 2017-04-02 18:12:10 +03:00
Makefile test/zdtm/Makefile: simplify 2017-04-02 18:12:10 +03:00
Makefile.inc test/zdtm/Makefiles: disable built-in rules 2017-05-10 04:26:56 +03:00