mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: fix compiler warning in NodeCryptoEnv
This fixes a warning in line 26: "warning: value computed is not used" when calling BIO_seek(). Refs: https://github.com/nodejs/node/pull/47160 PR-URL: https://github.com/nodejs/node/pull/49206 Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
parent
a494ef68f3
commit
6117cc3bd1
@ -23,8 +23,9 @@ TEST_F(NodeCryptoEnv, LoadBIO) {
|
||||
Local<String> key = String::NewFromUtf8(isolate_, "abcdef").ToLocalChecked();
|
||||
node::crypto::BIOPointer bio(node::crypto::LoadBIO(*env, key));
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||
BIO_seek(bio.get(), 2);
|
||||
ASSERT_EQ(BIO_tell(bio.get()), 2);
|
||||
const int ofs = 2;
|
||||
ASSERT_EQ(BIO_seek(bio.get(), ofs), ofs);
|
||||
ASSERT_EQ(BIO_tell(bio.get()), ofs);
|
||||
#endif
|
||||
ASSERT_EQ(ERR_peek_error(), 0UL) << "There should not have left "
|
||||
"any errors on the OpenSSL error stack\n";
|
||||
|
Loading…
Reference in New Issue
Block a user