test/test_syscalls.c: use unique filename per test
authorAmir Goldstein <amir73il@gmail.com>
Wed, 9 Jun 2021 10:34:17 +0000 (13:34 +0300)
committerNikolaus Rath <Nikolaus@rath.org>
Mon, 14 Jun 2021 08:13:12 +0000 (09:13 +0100)
commit057d6de867b6a0b1750c25ac4e4417f364d42dd6
tree570583b6f264cf07c62f7f04f31246e8865f6c07
parentc56ba920474d972483926ec40022d9640b31779f
test/test_syscalls.c: use unique filename per test

Generate unique filename per test (only for regular file for now).
Make sure to unlink the unique filename after each test.

realpath variable was renamed to basepath_r to fix build warning
on conflicting symbols with realpath() function.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
test/test_syscalls.c