summaryrefslogtreecommitdiff
path: root/unittest/unit.pl
diff options
context:
space:
mode:
authorunknown <mats@mysql.com>2006-04-11 20:29:34 +0200
committerunknown <mats@mysql.com>2006-04-11 20:29:34 +0200
commita14de3b2dbed4f3ec84d73f30266c0d9294f30c7 (patch)
tree000dd44bbd07c4a208131be0858eb8b4fb714538 /unittest/unit.pl
parent4f99f11e9c798225fd5906c23dc26da01ae4f20e (diff)
downloadmariadb-git-a14de3b2dbed4f3ec84d73f30266c0d9294f30c7.tar.gz
WL#3206 (Add unit tests):
More changes according to review comments. unittest/README.txt: Changes to manifest. unittest/mysys/bitmap.t.c: Removed unused functions and variables. Marked unused parameters as unused. No need to test every size up to 4096 bits, testing to 1024, but I think this is too much as well. unittest/unit.pl: Added test for version-specific function.
Diffstat (limited to 'unittest/unit.pl')
-rw-r--r--unittest/unit.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittest/unit.pl b/unittest/unit.pl
index 5c45c15a5b1..cae394cf9b6 100644
--- a/unittest/unit.pl
+++ b/unittest/unit.pl
@@ -100,7 +100,8 @@ sub run_cmd (@) {
# we are replacing the straps under the feet of Test::Harness,
# we need to do some basic initializations in the new straps.
$Test::Harness::Strap = MySQL::Straps->new;
- $Test::Harness::Strap->{callback} = \&Test::Harness::strap_callback;
+ $Test::Harness::Strap->{callback} = \&Test::Harness::strap_callback
+ if defined &Test::Harness::strap_callback;
runtests @files;
}