mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Avoid running some tests if the file system does not support holes
Otherwise, these tests fills up the entire disk (or just run very slowly and eventually time out).
This commit is contained in:
@ -41,6 +41,8 @@ do_prepare (int argc, char **argv)
|
||||
temp_fd = create_temp_file ("tst-fallocate.", &temp_filename);
|
||||
if (temp_fd == -1)
|
||||
FAIL_EXIT1 ("cannot create temporary file: %m");
|
||||
if (!support_descriptor_supports_holes (temp_fd))
|
||||
FAIL_UNSUPPORTED ("File %s does not support holes", temp_filename);
|
||||
}
|
||||
#define PREPARE do_prepare
|
||||
|
||||
|
Reference in New Issue
Block a user