selftest: acct: Add selftest for the acct() syscall

The acct() system call enables or disables process accounting.
If accounting is turned on, records for each terminating process
are appended to a specified filename as it terminates. An argument of NULL
causes accounting to be turned off.

This patch will add a test for the acct() syscall.

Signed-off-by: Abdulrasaq Lawani <abdulrasaqolawani@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
Abdulrasaq Lawani
2024-08-01 05:29:52 -04:00
committed by Shuah Khan
parent 44b045e27c
commit f0a1ffa6f9
4 changed files with 87 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
TEST_GEN_PROGS := acct_syscall
CFLAGS += -Wall
include ../lib.mk