Skip to content

Commit 19a295e

Browse files
committed
Be less strict about the length of the version string
This caused a test failure when using a tarball produced by the "make source_package" command. I believe the version string was "2.6.1" which is less than the 8 characters the test expected.
1 parent 1f48f45 commit 19a295e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/libkqueue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ test_libkqueue_version_str(struct test_context *ctx)
4646
die("kevent");
4747
}
4848

49-
if (strlen((char *)receipt.udata) < 8) {
50-
printf("No version number returned");
49+
if (!strlen((char *)receipt.udata)) {
50+
printf("empty version number returned");
5151
die("kevent");
5252
}
5353
}

0 commit comments

Comments
 (0)