test/lease-manager: Create dummy fds for fake lease grants 69/27269/1
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Wed, 16 Mar 2022 01:10:39 +0000 (10:10 +0900)
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>
Wed, 16 Mar 2022 01:59:37 +0000 (10:59 +0900)
commita669947c687ba6dceb9c82aa87dff5f8d453273e
tree17b764a5ba2233631116609217f3a0996a785127
parent93ae23dabbde590a1b61895d07d2ffa40c3d3e49
test/lease-manager: Create dummy fds for fake lease grants

drmModeCreateLease() should return a new lease fd for every succesful call.
Make sure that our dummy implementation does the same.
Returning 0 will cause stdout to be closed at the end of each test,
which will break the test logging when tests are run without forking
(ie. when CK_FORK=no)

Change-Id: I6b9436a962fb25b88576ae1c950c4f6f698e949a
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
drm-lease-manager/test/test-drm-device.c