We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a6aa60 commit 84d147dCopy full SHA for 84d147d
tools/testing/selftests/mm/hugetlb-madvise.c
@@ -19,6 +19,7 @@
19
#include <sys/mman.h>
20
#include <fcntl.h>
21
#include "vm_util.h"
22
+#include "../kselftest.h"
23
24
#define MIN_FREE_PAGES 20
25
#define NR_HUGE_PAGES 10 /* common number of pages to map/allocate */
@@ -78,7 +79,7 @@ int main(int argc, char **argv)
78
79
free_hugepages = get_free_hugepages();
80
if (free_hugepages < MIN_FREE_PAGES) {
81
printf("Not enough free huge pages to test, exiting!\n");
- exit(1);
82
+ exit(KSFT_SKIP);
83
}
84
85
fd = memfd_create(argv[0], MFD_HUGETLB);
0 commit comments