From 43900118fbb3434c2548674096efb3e98f9390c3 Mon Sep 17 00:00:00 2001 From: Tomasz Swierczek Date: Tue, 27 Aug 2019 07:08:15 +0200 Subject: [PATCH] Reorganize arguments to BOOST_REQUIRE_MESSAGE Static analysis tools were complaining about assignment. Change-Id: Iea9530b718d4aa823e01293fb6a81c95a9055f5c --- test/cs_test.cc | 6 +++--- 1 file 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 * @@ -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); -- 2.7.4