test/iopoll: don't truncate target file
Assume the passed in file is big enough, don't truncate it to zero
as it may cause other tests to fail that expect a larger file.
Fixes: ("iopoll: test that we always enter the ring")
@@ -250,7 +250,7 @@ static int test_io_uring_submit_enters(const char *file)
return 1;
}
- open_flags = O_WRONLY | O_DIRECT | O_TRUNC;
+ open_flags = O_WRONLY | O_DIRECT;
fd = open(file, open_flags);
if (fd < 0) {
perror("file open");
