From: Tomasz Swierczek Date: Tue, 27 Aug 2019 05:08:15 +0000 (+0200) Subject: Reorganize arguments to BOOST_REQUIRE_MESSAGE X-Git-Tag: submit/tizen/20190829.054731^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43900118fbb3434c2548674096efb3e98f9390c3;p=platform%2Fcore%2Fsecurity%2Flibcryptsvc.git Reorganize arguments to BOOST_REQUIRE_MESSAGE Static analysis tools were complaining about assignment. Change-Id: Iea9530b718d4aa823e01293fb6a81c95a9055f5c --- 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 * @@ -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 pKey(key, free);