diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:12:36 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 05:12:36 +0000 |
commit | 04d90211ecab6b0ddadadcf6c182f4607b9b72a8 (patch) | |
tree | ebe9c872e416346e4b333e5062da32401c8e0a73 /test/cq-overflow.c | |
parent | d53db6851ea17b2d219d084e1afc683b8b62b105 (diff) | |
parent | 1d27ff1934c5c4292dc00fba7f7f8ae411ed42f5 (diff) | |
download | liburing-04d90211ecab6b0ddadadcf6c182f4607b9b72a8.tar.gz |
Snap for 10453563 from 1d27ff1934c5c4292dc00fba7f7f8ae411ed42f5 to mainline-uwb-releaseaml_uwb_341710010aml_uwb_341513070aml_uwb_341511050aml_uwb_341310300aml_uwb_341310030aml_uwb_341111010aml_uwb_341011000android14-mainline-uwb-release
Change-Id: Ic34ca4f84d38b3a9593603ab4791da9a91806588
Diffstat (limited to 'test/cq-overflow.c')
-rw-r--r-- | test/cq-overflow.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/cq-overflow.c b/test/cq-overflow.c index 945dc93..057570e 100644 --- a/test/cq-overflow.c +++ b/test/cq-overflow.c @@ -243,6 +243,7 @@ err: int main(int argc, char *argv[]) { + const char *fname = ".cq-overflow"; unsigned iters, drops; unsigned long usecs; int ret; @@ -256,7 +257,7 @@ int main(int argc, char *argv[]) return ret; } - t_create_file(".basic-rw", FILE_SIZE); + t_create_file(fname, FILE_SIZE); vecs = t_create_buffers(BUFFERS, BS); @@ -265,7 +266,7 @@ int main(int argc, char *argv[]) do { drops = 0; - if (test_io(".basic-rw", usecs, &drops, 0)) { + if (test_io(fname, usecs, &drops, 0)) { fprintf(stderr, "test_io nofault failed\n"); goto err; } @@ -275,19 +276,19 @@ int main(int argc, char *argv[]) iters++; } while (iters < 40); - if (test_io(".basic-rw", usecs, &drops, 0)) { + if (test_io(fname, usecs, &drops, 0)) { fprintf(stderr, "test_io nofault failed\n"); goto err; } - if (test_io(".basic-rw", usecs, &drops, 1)) { + if (test_io(fname, usecs, &drops, 1)) { fprintf(stderr, "test_io fault failed\n"); goto err; } - unlink(".basic-rw"); + unlink(fname); return 0; err: - unlink(".basic-rw"); + unlink(fname); return 1; } |