Michal Privoznik 32799f1a9d vircgroupmock: Mock access() to some more files
Currently, if access(path, mode) is invoked, we check if @path has this
special prefix SYSFS_PREFIX. If it does, we modify the path a bit and
call realaccess. If it doesn't we act just like a wrapper and call
realaccess directly. However, we are mocking fopen() as well. And as one
can clearly see there, fopen("/proc/cgroups") will succeed. Hence, we
have an error in our mocked access(): We need to check whether @path is
not equal to /proc/cgroups as it may not exists on real system we're
running however we definitely know how to fopen() it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2013-10-22 15:42:19 +01:00
..
2012-04-02 09:33:54 -06:00
2013-10-14 14:34:37 -06:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2009-10-07 12:18:13 +02:00
2009-10-07 12:18:13 +02:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-07-29 13:09:39 -06:00
2013-10-08 12:39:30 +01:00
2013-03-19 13:13:28 -06:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-14 10:31:01 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00
2013-10-08 12:39:30 +01:00