cmake/debian/patches/protect-tests-from-makeflags.patch
Felix Geyer a6e2dd639f Add protect-tests-from-makeflags.patch, cherry-picked from upstream.
* Add protect-tests-from-makeflags.patch, cherry-picked from upstream.
  - Fixes running the test suite in parallel from dh_auto_test.
2015-04-29 22:33:01 +02:00

22 lines
701 B
Diff

From 703e76252930429ac39d3ebf456e3e1e688d1982 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Wed, 29 Apr 2015 16:13:50 -0400
Subject: [PATCH] Tests: Protect RunCMake tests from MAKEFLAGS in environment
(#15542)
---
Tests/RunCMake/RunCMake.cmake | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake
index b24ae0b..70c0d6c 100644
--- a/Tests/RunCMake/RunCMake.cmake
+++ b/Tests/RunCMake/RunCMake.cmake
@@ -135,3 +135,6 @@ function(run_cmake_command test)
set(RunCMake_TEST_COMMAND "${ARGN}")
run_cmake(${test})
endfunction()
+
+# Protect RunCMake tests from calling environment.
+unset(ENV{MAKEFLAGS})