fix: export subkey test cases on windows
This commit is contained in:
parent
9d03cb44f2
commit
d6de218295
@ -40,7 +40,8 @@ TEST_F(GpgCoreTest, CoreExportSubkeyTestA) {
|
||||
ASSERT_EQ(CheckGpgError(err), GPG_ERR_NO_ERROR);
|
||||
ASSERT_FALSE(gf_buffer.Empty());
|
||||
ASSERT_EQ(
|
||||
QCryptographicHash::hash(gf_buffer.ConvertToQByteArray(),
|
||||
QCryptographicHash::hash(
|
||||
gf_buffer.ConvertToQByteArray().replace("\r\n", "\n"),
|
||||
QCryptographicHash::Sha256)
|
||||
.toHex(),
|
||||
QByteArray(
|
||||
@ -54,7 +55,8 @@ TEST_F(GpgCoreTest, CoreExportSubkeyTestB) {
|
||||
ASSERT_EQ(CheckGpgError(err), GPG_ERR_NO_ERROR);
|
||||
ASSERT_FALSE(gf_buffer.Empty());
|
||||
ASSERT_EQ(
|
||||
QCryptographicHash::hash(gf_buffer.ConvertToQByteArray(),
|
||||
QCryptographicHash::hash(
|
||||
gf_buffer.ConvertToQByteArray().replace("\r\n", "\n"),
|
||||
QCryptographicHash::Sha256)
|
||||
.toHex(),
|
||||
QByteArray(
|
||||
@ -68,7 +70,8 @@ TEST_F(GpgCoreTest, CoreExportSubkeyTestC) {
|
||||
ASSERT_EQ(CheckGpgError(err), GPG_ERR_NO_ERROR);
|
||||
ASSERT_FALSE(gf_buffer.Empty());
|
||||
ASSERT_EQ(
|
||||
QCryptographicHash::hash(gf_buffer.ConvertToQByteArray(),
|
||||
QCryptographicHash::hash(
|
||||
gf_buffer.ConvertToQByteArray().replace("\r\n", "\n"),
|
||||
QCryptographicHash::Sha256)
|
||||
.toHex(),
|
||||
QByteArray(
|
||||
@ -82,7 +85,8 @@ TEST_F(GpgCoreTest, CoreExportSubkeyTestD) {
|
||||
ASSERT_EQ(CheckGpgError(err), GPG_ERR_NO_ERROR);
|
||||
ASSERT_FALSE(gf_buffer.Empty());
|
||||
ASSERT_EQ(
|
||||
QCryptographicHash::hash(gf_buffer.ConvertToQByteArray(),
|
||||
QCryptographicHash::hash(
|
||||
gf_buffer.ConvertToQByteArray().replace("\r\n", "\n"),
|
||||
QCryptographicHash::Sha256)
|
||||
.toHex(),
|
||||
QByteArray(
|
||||
|
Loading…
x
Reference in New Issue
Block a user