criu/test
Cyrill Gorcunov 7ff9efda4a zdtm: fifo-rowo-pair test update
Address Andrew's comments

 - use TEST_VALUE macro instead of open coded value
 - use WIFx macros for child status testing
 - kill child/parent on error

Note that it was not clear from an initiall patch
change log -- the difference between fifo_wronly
test case and this one is that we use fork() call
here which allow us to make sure that fifo restoration
code logic will be tested more widely.

Basically the flowchart of the test case:

parent				child
------				-----
open RW fifo (slave)
open RO fifo (master)
				open WO fifo (master)
				dup parent slave to slave1

				... waiting c/r to happen ...
				... waking up from c/r ...

				send bytes to master
				send bytes to slave1

				finish
... initiating c/r ...
... waking up from c/r ...

read bytes from master
read bytes from slave

PASS :D

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-07-02 16:56:01 +04:00
..
app-emu test, app-emu: Add HelloWorld java test 2012-05-03 13:06:56 +04:00
legacy make: Include Makefile.inc into legacy tests 2012-01-25 19:14:39 +04:00
tcp tcp: Automate TCP stream c/r 2012-04-28 20:37:54 +04:00
zdtm zdtm: fifo-rowo-pair test update 2012-07-02 16:56:01 +04:00
zdtm.sh zdtm: Enable fifo and fifo_wronly tests 2012-07-01 21:45:35 +04:00