Message ID | 020ca58ad59035488d6a50b14113ed7401e797f4.1688134400.git.falcon@tinylab.org |
---|---|
State | Superseded |
Headers | show |
Series | selftests/nolibc: allow run with minimal kernel config | expand |
diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index b7ea95dad0fb..906b70ddec79 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -1053,6 +1053,10 @@ int prepare(void) } } + /* try to mount /tmp if not mounted, if not mountable, use ramfs as tmpfs */ + mkdir("/tmp", 0755); + mount("none", "/tmp", "tmpfs", 0, 0); + return 0; }