summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-04-14 19:43:27 +0200
committerGitHub <noreply@github.com>2020-04-14 19:43:27 +0200
commit10abc0a0c8cfccb3a88f48675ddd49cbd084db9a (patch)
tree7f4b5af7a3d2aff1264116b86955992a4c525751
parentf16a4656e39a43028e686e4bbe3dfad4a19df181 (diff)
parent42a211349ed2569a6a412231bcb39f1527a093f3 (diff)
Merge pull request #12906 from vespa-engine/toregge/relax-check-of-value-set-by-getsockopt
Relax check of socket option set by getsockopt.
-rw-r--r--vespalib/src/vespa/vespalib/test/socket_options_verifier.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/test/socket_options_verifier.h b/vespalib/src/vespa/vespalib/test/socket_options_verifier.h
index 72694f643e2..8f9901e8acc 100644
--- a/vespalib/src/vespa/vespalib/test/socket_options_verifier.h
+++ b/vespalib/src/vespa/vespalib/test/socket_options_verifier.h
@@ -18,7 +18,7 @@ void verify_bool_opt(int fd, int level, int name, bool expect) {
socklen_t size = sizeof(data);
EXPECT_EQUAL(getsockopt(fd, level, name, &data, &size), 0);
EXPECT_EQUAL(size, sizeof(data));
- EXPECT_EQUAL(data, int(expect));
+ EXPECT_EQUAL(data != 0, expect);
}
} // namespace vespalib::test::<unnamed>