summaryrefslogtreecommitdiffstats
path: root/tools/build/feature/test-libaudit.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/feature/test-libaudit.c')
-rw-r--r--tools/build/feature/test-libaudit.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/build/feature/test-libaudit.c b/tools/build/feature/test-libaudit.c
new file mode 100644
index 0000000000..f5b0863fa1
--- /dev/null
+++ b/tools/build/feature/test-libaudit.c
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+#include <libaudit.h>
+
+extern int printf(const char *format, ...);
+
+int main(void)
+{
+ printf("error message: %s\n", audit_errno_to_name(0));
+
+ return audit_open();
+}