test: decrease memfd_count by 1 because all fds take one item
authorSheng Yong <shyodx@gmail.com>
Wed, 21 Jan 2015 13:38:21 +0000 (21:38 +0800)
committerDjalal Harouni <tixxdz@opendz.org>
Wed, 21 Jan 2015 13:55:53 +0000 (14:55 +0100)
commite7ddfb1da4ad1edd71a937893adf10e8d60c7ab8
treec9ea54bb2277f64ca96f45f98b73ac65fd0099bf
parent915ac894aff954366a96f132a85918f91530edff
test: decrease memfd_count by 1 because all fds take one item

When test E2BIG using memfd_count, we should consider that all fds
will take one item. So the number of left item, which will trigger
E2BIG is (KDBUG_MSG_MAX_ITEMs - 1).

Signed-off-by: Sheng Yong <shyodx@gmail.com>
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/test-fd.c