mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +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:
@ -739,7 +739,12 @@ do_test (void)
|
||||
*p = rand () >> 24;
|
||||
|
||||
infd = create_temp_file ("tst-copy_file_range-in-", &infile);
|
||||
xclose (create_temp_file ("tst-copy_file_range-out-", &outfile));
|
||||
{
|
||||
int outfd = create_temp_file ("tst-copy_file_range-out-", &outfile);
|
||||
if (!support_descriptor_supports_holes (outfd))
|
||||
FAIL_UNSUPPORTED ("File %s does not support holes", outfile);
|
||||
xclose (outfd);
|
||||
}
|
||||
|
||||
/* Try to find a different directory from the default input/output
|
||||
file. */
|
||||
|
Reference in New Issue
Block a user