mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-03 11:54:30 -04:00
Fix all warnings in UnitTest
This commit is contained in:
parent
e3240de8e0
commit
aa05d60894
25 changed files with 95 additions and 93 deletions
|
@ -40,11 +40,11 @@ TEST(libretroshare_gxs, GxsSecurity)
|
|||
|
||||
EXPECT_TRUE(GxsSecurity::generateKeyPair(pub_key,priv_key)) ;
|
||||
|
||||
#ifdef WIN32
|
||||
srand(getpid()) ;
|
||||
#else
|
||||
#ifdef WIN32
|
||||
srand(getpid()) ;
|
||||
#else
|
||||
srand48(getpid()) ;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
EXPECT_TRUE( pub_key.keyId == priv_key.keyId );
|
||||
EXPECT_TRUE( pub_key.startTS == priv_key.startTS );
|
||||
|
@ -93,7 +93,7 @@ TEST(libretroshare_gxs, GxsSecurity)
|
|||
|
||||
// Check that decrypted data is equal to original data.
|
||||
//
|
||||
EXPECT_TRUE((int)data_len == outlen2) ;
|
||||
EXPECT_TRUE(data_len == outlen2) ;
|
||||
EXPECT_TRUE(!memcmp(data,out2,outlen2)) ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue