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