tests: expose weaknesses in make flags analysis
[platform/upstream/automake.git] / t / self-check-seq.tap
index a92230e..3c5e2dc 100755 (executable)
@@ -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
@@ -17,7 +17,7 @@
 # Sanity check for the automake testsuite.
 # Check the 'seq_' subroutine.
 
-. ./defs || Exit 1
+. test-init.sh
 
 plan_ 14
 
@@ -26,7 +26,7 @@ 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"
 }