Ondrej Vasik 5f9af7
diff -urN coreutils-6.12-orig/tests/misc/cut coreutils-6.12/tests/misc/cut
Ondrej Vasik 5f9af7
--- coreutils-6.12-orig/tests/misc/cut	2008-05-17 08:41:11.000000000 +0200
Ondrej Vasik 5f9af7
+++ coreutils-6.12/tests/misc/cut	2008-06-02 11:13:08.000000000 +0200
Ondrej Vasik 5f9af7
@@ -26,7 +26,7 @@
Ondrej Vasik 5f9af7
 my $prog = 'cut';
Ondrej Vasik 5f9af7
 my $try = "Try \`$prog --help' for more information.\n";
Ondrej Vasik 5f9af7
 my $from_1 = "$prog: fields and positions are numbered from 1\n$try";
Ondrej Vasik 5f9af7
-my $inval = "$prog: invalid byte or field list\n$try";
Ondrej Vasik 5f9af7
+my $inval = "$prog: invalid byte, character or field list\n$try";
Ondrej Vasik 5f9af7
 my $no_endpoint = "$prog: invalid range with no endpoint: -\n$try";
Ondrej Vasik 5f9af7
 
Ondrej Vasik 5f9af7
 my @Tests =
Ondrej Vasik 5f9af7
@@ -140,8 +140,8 @@
Ondrej Vasik 5f9af7
   ['od-overlap5', '-b1-3,1-4', '--output-d=:', {IN=>"abcde\n"}, {OUT=>"abcd\n"}],
Ondrej Vasik 5f9af7
 
Ondrej Vasik 5f9af7
   # None of the following invalid ranges provoked an error up to coreutils-6.9.
Ondrej Vasik 5f9af7
-  ['inval1', qw(-f 2-0), {IN=>''}, {OUT=>''}, {EXIT=>1},
Ondrej Vasik 5f9af7
-   {ERR=>"$prog: invalid decreasing range\n$try"}],
Ondrej Vasik c8e66e
+  ['inval1', qw(-f 2-0), {IN=>''}, {OUT=>''}, {EXIT=>1},
Ondrej Vasik c8e66e
+   {ERR=>"$prog: invalid byte, character or field list\n$try"}],
Ondrej Vasik 5f9af7
   ['inval2', qw(-f -), {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
Ondrej Vasik 5f9af7
   ['inval3', '-f', '4,-', {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
Ondrej Vasik 5f9af7
   ['inval4', '-f', '1-2,-', {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
Ondrej Vasik 5f9af7
diff -urN coreutils-6.11-orig/tests/mkdir/selinux coreutils-6.11/tests/mkdir/selinux
Ondrej Vasik a81ef2
--- coreutils-6.11-orig/tests/mkdir/selinux	2008-04-19 23:34:23.000000000 +0200
Ondrej Vasik a81ef2
+++ coreutils-6.11/tests/mkdir/selinux	2008-04-22 13:23:50.000000000 +0200
Ondrej Vasik 5f9af7
@@ -38,6 +28,7 @@
Ondrej Vasik 5f9af7
 # successfully, in spite of the invalid context string.
Ondrej Vasik 5f9af7
  
Ondrej Vasik 5f9af7
 . $srcdir/test-lib.sh
Ondrej Vasik a81ef2
+require_selinux_
Ondrej Vasik a81ef2
 
Ondrej Vasik a81ef2
 c=invalid-selinux-context
Ondrej Vasik a81ef2
 msg="failed to set default file creation context to \`$c':"
Ondrej Vasik 25defc
diff -urNp coreutils-6.11-orig/tests/test-lib.sh coreutils-6.11/tests/test-lib.sh
Ondrej Vasik 25defc
--- coreutils-6.11-orig/tests/test-lib.sh	2008-04-19 23:34:23.000000000 +0200
Ondrej Vasik 25defc
+++ coreutils-6.11/tests/test-lib.sh	2008-04-24 14:18:59.000000000 +0200
Ondrej Vasik 25defc
@@ -97,8 +97,8 @@ skip_if_()
Ondrej Vasik a81ef2
 
Ondrej Vasik 25defc
 require_selinux_()
Ondrej Vasik 25defc
 {
Ondrej Vasik 25defc
-  case `ls -Zd .` in
Ondrej Vasik 25defc
-    '? .'|'unlabeled .')
Ondrej Vasik 25defc
+  case `ls --scontext -d . | cut -f1 -d" "` in
Ondrej Vasik 25defc
+    '?'|'unlabeled')
Ondrej Vasik 25defc
       skip_test_ "this system (or maybe just" \
Ondrej Vasik 25defc
         "the current file system) lacks SELinux support"
Ondrej Vasik 25defc
     ;;
Ondrej Vasik a81ef2
diff -urp coreutils-6.11-orig/gnulib-tests/test-getaddrinfo.c coreutils-6.11/gnulib-tests/test-getaddrinfo.c
Ondrej Vasik a81ef2
--- coreutils-6.11-orig/gnulib-tests/test-getaddrinfo.c
Ondrej Vasik a81ef2
+++ coreutils-6.11/gnulib-tests/test-getaddrinfo.c
Ondrej Vasik a81ef2
@@ -70,6 +70,10 @@ int simple (char *host, char *service)
Ondrej Vasik a81ef2
       if (res == EAI_NODATA)
Ondrej Vasik 0629e2
 	return 0;
Ondrej Vasik 0629e2
 
Ondrej Vasik 0629e2
+      /* Do not fail this test for temporary name resolution errors. */
Ondrej Vasik 0629e2
+      if (res == EAI_AGAIN)
Ondrej Vasik 0629e2
+         return 0;
Ondrej Vasik 0629e2
+
Ondrej Vasik 0629e2
       return 1;
Ondrej Vasik 0629e2
     }
Ondrej Vasik 0629e2