mirror of
https://github.com/torvalds/linux.git
synced 2024-12-05 10:32:35 +00:00
selftests/nolibc: prepare /tmp for tests that need to write
create a /tmp directory. If it succeeds, the directory is writable, which is normally the case when booted from an initramfs anyway. This will be used instead of procfs for some tests. Reviewed-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Zhangjin Wu <falcon@tinylab.org> Link: https://lore.kernel.org/lkml/20230710050600.9697-1-falcon@tinylab.org/ [wt: removed the unneeded mount() call] Signed-off-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
parent
b8b26108e4
commit
bbb14546bd
@ -1064,6 +1064,9 @@ int prepare(void)
|
||||
}
|
||||
}
|
||||
|
||||
/* some tests rely on a writable /tmp */
|
||||
mkdir("/tmp", 0755);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user