tests: virtio-9p: ".." cannot be used to walk out of the shared directory
commita37c07022b44e4fc29238deca7588406d081e6c2
authorGreg Kurz <groug@kaod.org>
Tue, 3 Jan 2017 16:28:44 +0000 (3 17:28 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 3 Jan 2017 16:28:44 +0000 (3 17:28 +0100)
tree8866166b4ca2d8356db7d19cfe9182c698625ada
parentba0d10378c5b040d20adc3340f74640b47528d4b
tests: virtio-9p: ".." cannot be used to walk out of the shared directory

According to the 9P spec at http://man.cat-v.org/plan_9/5/intro, the
parent directory of the root directory of a server's tree is itself.
This test hence checks that the qid of the root directory as returned by
attach is the same as the qid of ".." when walking from the root directory.

Signed-off-by: Greg Kurz <groug@kaod.org>
tests/virtio-9p-test.c