diff options
author | Tomasz Swierczek <t.swierczek@samsung.com> | 2019-08-27 07:08:15 +0200 |
---|---|---|
committer | Tomasz Swierczek <t.swierczek@samsung.com> | 2019-08-27 07:08:15 +0200 |
commit | 43900118fbb3434c2548674096efb3e98f9390c3 (patch) | |
tree | 85969fb2e1681aa02cd432e52ed4e070e580cd87 | |
parent | 1fba45ea3ada4e8b5e18a3bd185332a9be37ae40 (diff) | |
download | libcryptsvc-43900118fbb3434c2548674096efb3e98f9390c3.tar.gz libcryptsvc-43900118fbb3434c2548674096efb3e98f9390c3.tar.bz2 libcryptsvc-43900118fbb3434c2548674096efb3e98f9390c3.zip |
Reorganize arguments to BOOST_REQUIRE_MESSAGEtizen_5.5.m2_releasesubmit/tizen_5.5_wearable_hotfix/20201026.184304submit/tizen_5.5_mobile_hotfix/20201026.185104submit/tizen_5.5/20191031.000004submit/tizen/20190904.052237submit/tizen/20190829.054731accepted/tizen/unified/20190904.110643accepted/tizen/5.5/unified/wearable/hotfix/20201027.113545accepted/tizen/5.5/unified/mobile/hotfix/20201027.090953accepted/tizen/5.5/unified/20191031.023522tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unified
Static analysis tools were complaining about assignment.
Change-Id: Iea9530b718d4aa823e01293fb6a81c95a9055f5c
-rw-r--r-- | test/cs_test.cc | 6 |
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); |