From 13d2e0d39f6d8c923f5b92984ce52ee6e14f5436 Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Tue, 28 Sep 2021 15:11:28 +0100 Subject: Github 581 - Upgrade doctest * Upgrade doctest to version 2.4.6 to allow Arm NN to build with glibc 2.34 Signed-off-by: Jan Eilers Change-Id: Iff2ef286ba5ad0e0ec0f54f510253a2ec4b464d3 --- src/backends/backendsCommon/test/DynamicBackendTests.hpp | 4 ++-- src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backends') diff --git a/src/backends/backendsCommon/test/DynamicBackendTests.hpp b/src/backends/backendsCommon/test/DynamicBackendTests.hpp index f49c36e5b1..046ee3a488 100644 --- a/src/backends/backendsCommon/test/DynamicBackendTests.hpp +++ b/src/backends/backendsCommon/test/DynamicBackendTests.hpp @@ -146,7 +146,7 @@ std::string GetBasePath(const std::string& basePath) // This is the base path from the build where the test libraries were built. path sharedObjectPath = programLocation.append(basePath); REQUIRE_MESSAGE(exists(sharedObjectPath), - "Base path for shared objects does not exist: " + sharedObjectPath.string()); + ("Base path for shared objects does not exist: " + sharedObjectPath.string())); return sharedObjectPath.string(); } @@ -385,7 +385,7 @@ void CreateValidDynamicBackendObjectTestImpl() // We expect this path to exists so we can load a valid dynamic backend. CHECK_MESSAGE(fs::exists(testSubDirectory), - "Base path for shared objects does not exist: " + testSubDirectory); + ("Base path for shared objects does not exist: " + testSubDirectory)); std::string sharedObjectFilePath = GetTestFilePath(testSubDirectory, g_TestValidTestDynamicBackendFileName); diff --git a/src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp b/src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp index c4c9f7f31c..a1128cfcb9 100644 --- a/src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp +++ b/src/backends/backendsCommon/test/JsonPrinterTestImpl.cpp @@ -68,7 +68,7 @@ std::vector ExtractMeasurements(const std::string& exp) } catch (std::invalid_argument const&) { - FAIL("Could not convert measurements to double: " + numberString); + FAIL(("Could not convert measurements to double: " + numberString)); } numberString.clear(); @@ -83,7 +83,7 @@ std::vector ExtractMeasurements(const std::string& exp) } catch (std::invalid_argument const&) { - FAIL("Could not convert measurements to double: " + numberString); + FAIL(("Could not convert measurements to double: " + numberString)); } numberString.clear(); } -- cgit v1.2.1