Commit [591c99] Maximize Restore History

acct01: fix TBROK to TCONF if acct not implemented

acct system call is avaliable only when the kernel option is on.
When it fails, acct returns -1 and sets errno correspondingly.
ENOSYS is set when the system call is not implemented.
Currently, ENOSYS is not checked when the TEST_FILE5 argument is passed.
It just goes to TBROK regardless of the implementation in kernel.
This patch modifies to check errno ENOSYS, and marks as TCONF in that case.

Signed-off-by: Honggyu Kim <nexus226@gmail.com>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

Honggyu Kim Honggyu Kim 2013-11-03

Wanlong Gao Wanlong Gao 2013-11-04

changed testcases/kernel/syscalls/acct/acct01.c
testcases/kernel/syscalls/acct/acct01.c Diff Switch to side-by-side view
Loading...