summaryrefslogtreecommitdiff
path: root/dbug/tests-t.pl
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-07-16 09:09:01 +0200
committerSergei Golubchik <sergii@pisem.net>2011-07-16 09:09:01 +0200
commit2853f6bfbb2f392fa5623b480a2ce112991d2486 (patch)
tree4b089d92c563d49f563e6cadf4475a65974899a2 /dbug/tests-t.pl
parent66a8da067793b717df0d4682357df15cba3c935f (diff)
downloadmariadb-git-2853f6bfbb2f392fa5623b480a2ce112991d2486.tar.gz
unit test fixes for ctest
Diffstat (limited to 'dbug/tests-t.pl')
-rwxr-xr-xdbug/tests-t.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/dbug/tests-t.pl b/dbug/tests-t.pl
index de9ed6f6ab9..9f517ba3efd 100755
--- a/dbug/tests-t.pl
+++ b/dbug/tests-t.pl
@@ -8,8 +8,9 @@
use Test::More;
$exe=$0;
+$exe =~ s@[^/]+$@tests@;
-die unless $exe =~ s/(tests)-t(\.exe)?$/$1$2 /;
+die unless -x $exe;
# load tests
@tests=();
@@ -28,7 +29,7 @@ plan skip_all => "because dbug is disabled" if system $exe;
plan tests => scalar(@tests);
for (@tests) {
- $t=$exe . shift @$_;
+ $t=$exe . ' ' . shift @$_;
chomp($t);
open F, '-|', $t or die "open($t|): $!";
local $";