test/file-register: ensure the fail case allocates enough

For the fail case, we only allocate 10 descriptors, yet still try
and use 100 in the array. Allocate enough and ensure that we clear
them to -2 as well, as the default clear of -1 means "sparse
placeholder" for the file registration code.

Reported-by: Manu Bretelle <chantra@meta.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 file changed