Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions dbms/src/Encryption/tests/gtest_encryption_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,15 @@ INSTANTIATE_TEST_CASE_P(
testing::Values(
EncryptionMethod::Aes128Ctr,
EncryptionMethod::Aes192Ctr,
EncryptionMethod::Aes256Ctr,
EncryptionMethod::Aes256Ctr
#if USE_GM_SSL
,
EncryptionMethod::SM4Ctr
#elif OPENSSL_VERSION_NUMBER < 0x1010100fL || defined(OPENSSL_NO_SM4)
// not support SM4
#else
// Openssl support SM4 after 1.1.1 release version.
,
EncryptionMethod::SM4Ctr
#endif
)));
Expand Down Expand Up @@ -485,7 +487,9 @@ try
linked_file.close();

// Check the stat
struct stat file_stat;
struct stat file_stat
{
};
ASSERT_EQ(0, stat(linked_file_path.c_str(), &file_stat));
ASSERT_EQ(2, file_stat.st_nlink);

Expand Down Expand Up @@ -541,7 +545,9 @@ try
linked_enc_file.close();

// Check the stat
struct stat file_stat;
struct stat file_stat
{
};
ASSERT_EQ(0, stat(linked_file_path.c_str(), &file_stat));
ASSERT_EQ(2, file_stat.st_nlink);

Expand Down