From c778141b8fc62459b9a47a7ed75b4f2ad1362af0 Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 25 Nov 2017 12:16:21 +0000 Subject: t: Make tests work without fakeroot when R³ is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niels Thykier --- t/Test/DH.pm | 2 +- t/dh_installdocs/debian/control | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 't') diff --git a/t/Test/DH.pm b/t/Test/DH.pm index b9275cbe..a5465c58 100644 --- a/t/Test/DH.pm +++ b/t/Test/DH.pm @@ -87,7 +87,7 @@ sub run_dh_tool { sub uid_0_test_is_ok { return $ROOT_OK if defined($ROOT_OK); my $ok = 0; - if ($< == 0) { + if (Debian::Debhelper::Dh_Lib::DH_ENABLE_RRR_SUPPORT or $< == 0) { $ok = 1; } else { system('fakeroot true 2>/dev/null'); diff --git a/t/dh_installdocs/debian/control b/t/dh_installdocs/debian/control index 48d4de2f..7e9a2282 100644 --- a/t/dh_installdocs/debian/control +++ b/t/dh_installdocs/debian/control @@ -2,6 +2,7 @@ Source: foo Section: misc Priority: optional Maintainer: Test +Rules-Requires-Root: no Standards-Version: 3.9.8 Package: foo -- cgit v1.2.3