Skip to content

Commit 7faebb8

Browse files
committed
Merge branch 'fix-tests' of https://github.com/godzie44/liburing
* 'fix-tests' of https://github.com/godzie44/liburing: test/probe.c: fix typo in assert output test/nop-all-sizes.c: del some unnecessary checks
2 parents 98db8e8 + c3e3669 commit 7faebb8

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

test/nop-all-sizes.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ static int test_nops(struct io_uring *ring)
3737
int ret, nr, total = 0, i;
3838

3939
nr = fill_nops(ring);
40-
if (nr < 0) {
41-
fprintf(stderr, "Fill: %d\n", nr);
42-
goto err;
43-
}
4440

4541
ret = io_uring_submit(ring);
4642
if (ret != nr) {
@@ -50,10 +46,6 @@ static int test_nops(struct io_uring *ring)
5046
total += ret;
5147

5248
nr = fill_nops(ring);
53-
if (nr < 0) {
54-
fprintf(stderr, "Fill: %d\n", nr);
55-
goto err;
56-
}
5749

5850
ret = io_uring_submit(ring);
5951
if (ret != nr) {

test/probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static int verify_probe(struct io_uring_probe *p, int full)
3636
return 1;
3737
}
3838
if (!(p->ops[IORING_OP_WRITE].flags & IO_URING_OP_SUPPORTED)) {
39-
fprintf(stderr, "READV not supported!?\n");
39+
fprintf(stderr, "WRITE not supported!?\n");
4040
return 1;
4141
}
4242

0 commit comments

Comments
 (0)