Merge branch 'fix-half-pr14760' into micro
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 23 Jul 2013 19:39:06 +0000 (20:39 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 23 Jul 2013 19:39:06 +0000 (20:39 +0100)
* fix-half-pr14760:
  tests: fix a spurious failure on NetBSD-current

t/silent-custom.sh

index 7ce3ffc..b00e388 100644 (file)
@@ -80,8 +80,18 @@ do_check ()
   else
     $FGREP 'GEN ' output && exit 1
     $FGREP 'cp ./foo.in foo' output
-    $FGREP "rm -f sub/0.h sub/1.h sub/2.h" output
-    $FGREP "generate-header --flags sub/0.h sub/1.h sub/2.h" output
+    # Be prepared to handle "creative quoting" in the shell traces.
+    # See automake bug#14760.
+    ok=false
+    for q in '' \' \"; do
+      files="${q}sub/0.h${q} ${q}sub/1.h${q} ${q}sub/2.h${q}"
+      $FGREP "rm -f $files" output || continue
+      $FGREP "generate-header --flags $files" output || continue
+      ok=:
+      break
+    done
+    $ok || exit 1
+    unset ok
   fi
 }