Skip to content

Commit

Permalink
test/version: fix broken test
Browse files Browse the repository at this point in the history
The current version should always match.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Feb 27, 2024
1 parent a025323 commit 2b353a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

int main(int argc, char *argv[])
{
if (!IO_URING_CHECK_VERSION(io_uring_major_version(), io_uring_minor_version()))
if (IO_URING_CHECK_VERSION(io_uring_major_version(), io_uring_minor_version()))
return T_EXIT_FAIL;

if (io_uring_major_version() != IO_URING_VERSION_MAJOR)
Expand All @@ -17,7 +17,7 @@ int main(int argc, char *argv[])
if (io_uring_minor_version() != IO_URING_VERSION_MINOR)
return T_EXIT_FAIL;

#if !IO_URING_CHECK_VERSION(IO_URING_VERSION_MAJOR, IO_URING_VERSION_MINOR)
#if IO_URING_CHECK_VERSION(IO_URING_VERSION_MAJOR, IO_URING_VERSION_MINOR)
return T_EXIT_FAIL;
#endif

Expand Down

0 comments on commit 2b353a8

Please sign in to comment.