summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Swierczek <t.swierczek@samsung.com>2019-08-27 07:08:15 +0200
committerTomasz Swierczek <t.swierczek@samsung.com>2019-08-27 07:08:15 +0200
commit43900118fbb3434c2548674096efb3e98f9390c3 (patch)
tree85969fb2e1681aa02cd432e52ed4e070e580cd87
parent1fba45ea3ada4e8b5e18a3bd185332a9be37ae40 (diff)
downloadlibcryptsvc-accepted/tizen_5.5_unified.tar.gz
libcryptsvc-accepted/tizen_5.5_unified.tar.bz2
libcryptsvc-accepted/tizen_5.5_unified.zip
Static analysis tools were complaining about assignment. Change-Id: Iea9530b718d4aa823e01293fb6a81c95a9055f5c
-rw-r--r--test/cs_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cs_test.cc b/test/cs_test.cc
index a0695fc..a6dc199 100644
--- a/test/cs_test.cc
+++ b/test/cs_test.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2019 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Kyungwook Tak <k.tak@samsung.com>
*
@@ -68,8 +68,8 @@ static void derive_key_with_pass(const char *pass, int passlen)
constexpr unsigned int KeyLen = 20;
unsigned char *key = nullptr;
- BOOST_REQUIRE_MESSAGE(
- (retval = cs_derive_key_with_pass(pass, passlen, KeyLen, &key)) == CS_ERROR_NONE,
+ retval = cs_derive_key_with_pass(pass, passlen, KeyLen, &key);
+ BOOST_REQUIRE_MESSAGE(retval == CS_ERROR_NONE,
"Failed to cs_derive_key_with_pass with retval: " << retval);
std::unique_ptr<unsigned char, void(*)(void *)> pKey(key, free);