summaryrefslogtreecommitdiffstats
path: root/src/coredump/test-coredump-vacuum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coredump/test-coredump-vacuum.c')
-rw-r--r--src/coredump/test-coredump-vacuum.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/coredump/test-coredump-vacuum.c b/src/coredump/test-coredump-vacuum.c
new file mode 100644
index 0000000..840884d
--- /dev/null
+++ b/src/coredump/test-coredump-vacuum.c
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+
+#include <stdlib.h>
+
+#include "coredump-vacuum.h"
+
+int main(int argc, char *argv[]) {
+
+ if (coredump_vacuum(-1, UINT64_MAX, 70 * 1024) < 0)
+ return EXIT_FAILURE;
+
+ return EXIT_SUCCESS;
+}