diff options
author | Florian Schmaus <flow@gentoo.org> | 2021-06-21 21:07:49 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2021-06-21 21:11:42 +0200 |
commit | ad48503f5edbfb90110590e4dace5d3f6e2d159c (patch) | |
tree | 8a2d73672f8e5b58fda8a40a3d774f9a1996f9cb /sys-fs/fscrypt/files/0001-Remove-TestLoadSourceDevice.patch | |
parent | dev-embedded/u-boot-tools: Stabilize 2021.04_rc2 x86, #771555 (diff) | |
download | gentoo-ad48503f5edbfb90110590e4dace5d3f6e2d159c.tar.gz gentoo-ad48503f5edbfb90110590e4dace5d3f6e2d159c.tar.bz2 gentoo-ad48503f5edbfb90110590e4dace5d3f6e2d159c.zip |
sys-fs/fscrypt: initial import
Closes: https://bugs.gentoo.org/727038
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'sys-fs/fscrypt/files/0001-Remove-TestLoadSourceDevice.patch')
-rw-r--r-- | sys-fs/fscrypt/files/0001-Remove-TestLoadSourceDevice.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sys-fs/fscrypt/files/0001-Remove-TestLoadSourceDevice.patch b/sys-fs/fscrypt/files/0001-Remove-TestLoadSourceDevice.patch new file mode 100644 index 000000000000..c019a080eab5 --- /dev/null +++ b/sys-fs/fscrypt/files/0001-Remove-TestLoadSourceDevice.patch @@ -0,0 +1,44 @@ +From 462a36e7b039d5c7e33d95237f6c697fa59775da Mon Sep 17 00:00:00 2001 +From: Florian Schmaus <flo@geekplace.eu> +Date: Sat, 17 Apr 2021 18:15:05 +0200 +Subject: [PATCH] Remove TestLoadSourceDevice + +This test requires /dev/loop0, which may not always be available. +--- + filesystem/mountpoint_test.go | 20 -------------------- + 1 file changed, 20 deletions(-) + +diff --git a/filesystem/mountpoint_test.go b/filesystem/mountpoint_test.go +index 633ff947aaf7..9981db181a13 100644 +--- a/filesystem/mountpoint_test.go ++++ b/filesystem/mountpoint_test.go +@@ -92,26 +92,6 @@ func TestLoadMountInfoBasic(t *testing.T) { + } + } + +-// Test that Mount.Device is set to the mountpoint's source device if +-// applicable, otherwise it is set to the empty string. +-func TestLoadSourceDevice(t *testing.T) { +- var mountinfo = ` +-15 0 7:0 / / rw shared:1 - foo /dev/loop0 rw,data=ordered +-31 15 0:27 / /tmp rw,nosuid,nodev shared:17 - tmpfs tmpfs rw +-` +- beginLoadMountInfoTest() +- defer endLoadMountInfoTest() +- loadMountInfoFromString(mountinfo) +- mnt := mountForDevice("7:0") +- if mnt.Device != "/dev/loop0" { +- t.Error("mnt.Device wasn't set to source device") +- } +- mnt = mountForDevice("0:27") +- if mnt.Device != "" { +- t.Error("mnt.Device wasn't set to empty string for an invalid device") +- } +-} +- + // Test that non-directory mounts are ignored. + func TestNondirectoryMountsIgnored(t *testing.T) { + beginLoadMountInfoTest() +-- +2.30.2 + |