diff options
author | Niels Thykier <niels@thykier.net> | 2017-11-25 12:16:21 +0000 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2017-11-25 12:16:21 +0000 |
commit | c778141b8fc62459b9a47a7ed75b4f2ad1362af0 (patch) | |
tree | 06e2a6c4cd129a2022948cba05253bce7059aeb9 /t | |
parent | 6c634c8067ac6426da5c76b0be4b2b7dce2f3ecb (diff) | |
download | debhelper-c778141b8fc62459b9a47a7ed75b4f2ad1362af0.tar.gz |
t: Make tests work without fakeroot when R³ is enabled
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 't')
-rw-r--r-- | t/Test/DH.pm | 2 | ||||
-rw-r--r-- | t/dh_installdocs/debian/control | 1 |
2 files changed, 2 insertions, 1 deletions
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 <testing@nowhere> +Rules-Requires-Root: no Standards-Version: 3.9.8 Package: foo |