From 579af1b265b504d07ccfec376858d12d6a233f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 29 Aug 2020 10:18:50 +0200 Subject: [PATCH] =?UTF-8?q?tests:=20fix=20compilation=20with=20CppUTest=20?= =?UTF-8?q?=E2=89=A5=204.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemoryLeakWarningPlugin::turnOnNewDeleteOverloads is replaced by MemoryLeakWarningPlugin::turnOnThreadSafeNewDeleteOverloads, which is available in both CppUTest 3.x and 4.0. --- ChangeLog.adoc | 1 + tests/scripts/test-scripts.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index d50efa216..15c8e1a50 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -43,6 +43,7 @@ Tests:: Build:: * core: disable debug by default in autotools build + * tests: fix compilation with CppUTest ≥ 4.0 [[v2.9]] == Version 2.9 (2020-07-18) diff --git a/tests/scripts/test-scripts.cpp b/tests/scripts/test-scripts.cpp index 16058dec6..756ae35a6 100644 --- a/tests/scripts/test-scripts.cpp +++ b/tests/scripts/test-scripts.cpp @@ -273,7 +273,7 @@ TEST(Scripts, API) LONGS_EQUAL(0, api_tests_other); if (turnoff_memleak) - MemoryLeakWarningPlugin::turnOnNewDeleteOverloads(); + MemoryLeakWarningPlugin::turnOnThreadSafeNewDeleteOverloads(); } free (path_testapi_output_dir);