f180de
diff -urNp coreutils-8.22-orig/tests/cp/cp-a-selinux.sh coreutils-8.22/tests/cp/cp-a-selinux.sh
f180de
--- coreutils-8.22-orig/tests/cp/cp-a-selinux.sh	2016-06-24 11:44:21.909303666 +0200
f180de
+++ coreutils-8.22/tests/cp/cp-a-selinux.sh	2016-06-24 11:47:28.473908346 +0200
f180de
@@ -73,7 +73,8 @@ old_type_d=$(get_selinux_type c_d)
f180de
 # and get the adjusted type for comparison
f180de
 cp -a c Z1 || fail=1
f180de
 cp -a c_d Z1_d || fail=1
f180de
-if restorecon Z1 Z1_d 2>/dev/null; then
f180de
+if restorecon Z1 Z1_d 2>restorecon.err \
f180de
+   && compare /dev/null restorecon.err; then
f180de
   new_type_f=$(get_selinux_type Z1)
f180de
   new_type_d=$(get_selinux_type Z1_d)
f180de
 
f180de
diff -urNp coreutils-8.22-orig/tests/local.mk coreutils-8.22/tests/local.mk
f180de
--- coreutils-8.22-orig/tests/local.mk	2016-06-24 11:44:21.920303760 +0200
f180de
+++ coreutils-8.22/tests/local.mk	2016-06-24 11:49:31.388965563 +0200
f180de
@@ -117,7 +117,6 @@ all_root_tests =				\
f180de
   tests/df/problematic-chars.sh			\
f180de
   tests/du/bind-mount-dir-cycle.sh		\
f180de
   tests/du/bind-mount-dir-cycle-v2.sh		\
f180de
-  tests/id/setgid.sh				\
f180de
   tests/install/install-C-root.sh		\
f180de
   tests/ls/capability.sh			\
f180de
   tests/ls/nameless-uid.sh			\
f180de
@@ -515,7 +514,6 @@ all_tests =					\
f180de
   tests/id/no-context.sh			\
f180de
   tests/id/context.sh				\
f180de
   tests/id/uid.sh				\
f180de
-  tests/id/setgid.sh				\
f180de
   tests/id/zero.sh				\
f180de
   tests/install/basic-1.sh			\
f180de
   tests/install/create-leading.sh		\