]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
tests: cgroupmock: Use the temporary directory as fake root
authorAndrea Bolognani <abologna@redhat.com>
Fri, 4 Dec 2015 09:54:29 +0000 (10:54 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 9 Dec 2015 14:22:58 +0000 (15:22 +0100)
commitbc80c45d5d3cacaff3bcbed7956ae77eb8a3a3ec
tree1cf113e9a49a03eb8323f7300fa8fc86f0f09963
parentf94398e72e7d41a9798a4f82aafdc698a1b639d3
tests: cgroupmock: Use the temporary directory as fake root

We might need to mock files living outside SYSFS_PREFIX later on,
so it's better to treat the temporary directory we are passed via
the environment as the root of the fake filesystem and create
SYSFS_PREFIX inside it.

The environment variable name will be changed to reflect the new use
we're making of it in a later commit.
tests/vircgroupmock.c