tests: avoid a spurious failure on MacOS X 10.6.8
[platform/upstream/automake.git] / t / self-check-seq.tap
old mode 100755 (executable)
new mode 100644 (file)
index a92230e..4e9d58f
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2011-2012 Free Software Foundation, Inc.
+# Copyright (C) 2011-2013 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # Sanity check for the automake testsuite.
 # Check the 'seq_' subroutine.
 
-. ./defs || Exit 1
+. test-init.sh
 
 plan_ 14
 
-unset stderr_fileno_ || :
+unset stderr_fileno_
 
 check_work ()
 {
   desc=$1 args=$2 exp=$3
-  st=0; got=`seq_ $args` || st=$?
+  st=0; got=$(seq_ $args) || st=$?
   command_ok_ "$desc [exit status = 0]" test $st -eq 0
   command_ok_ "$desc [output]" test x"$exp" = x"$got"
 }