| 103 | } |
| 104 | |
| 105 | int main(int argc, char *argv[]) |
| 106 | { |
| 107 | struct io_uring ring; |
| 108 | int ret; |
| 109 | |
| 110 | if (argc > 1) |
| 111 | return 0; |
| 112 | |
| 113 | ret = io_uring_queue_init(8, &ring, 0); |
| 114 | if (ret) { |
| 115 | fprintf(stderr, "ring setup failed\n"); |
| 116 | return 1; |
| 117 | } |
| 118 | |
| 119 | ret = test_probe(&ring); |
| 120 | if (ret) { |
| 121 | fprintf(stderr, "test_probe failed\n"); |
| 122 | return ret; |
| 123 | } |
| 124 | if (no_probe) |
| 125 | return 0; |
| 126 | |
| 127 | ret = test_probe_helper(&ring); |
| 128 | if (ret) { |
| 129 | fprintf(stderr, "test_probe failed\n"); |
| 130 | return ret; |
| 131 | } |
| 132 | |
| 133 | |
| 134 | return 0; |
| 135 | } |
nothing calls this directly
no test coverage detected