summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-16 21:30:58 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-01-16 21:30:58 +0100
commit797e8db3ba1e0038db553af6f564e221479ac381 (patch)
treec08a5803a33a6ce8d0fd41b58e81dc7074fceab0 /source4
parent6508824f394ceac5cd16b3e620bffd18fe577fc1 (diff)
downloadsamba-797e8db3ba1e0038db553af6f564e221479ac381.tar.gz
samba-797e8db3ba1e0038db553af6f564e221479ac381.tar.bz2
samba-797e8db3ba1e0038db553af6f564e221479ac381.zip
selftest: Use "require" rather than "use" keyword so .pm files don't have to be provided until used.
(This used to be commit 95872d7db8c9bb1914ab4c9860fd8b09e6695cc7)
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/selftest/selftest.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/selftest/selftest.pl b/source4/selftest/selftest.pl
index 46c3846b54..004332a1fc 100755
--- a/source4/selftest/selftest.pl
+++ b/source4/selftest/selftest.pl
@@ -426,20 +426,20 @@ my $testenv_default = "none";
if ($opt_target eq "samba4") {
$testenv_default = "member";
- use target::Samba4;
+ require target::Samba4;
$target = new Samba4($opt_bindir or "$srcdir/bin", $ldap, "$srcdir/setup");
} elsif ($opt_target eq "samba3") {
if ($opt_socket_wrapper and `$opt_bindir/smbd -b | grep SOCKET_WRAPPER` eq "") {
die("You must include --enable-socket-wrapper when compiling Samba in order to execute 'make test'. Exiting....");
}
$testenv_default = "dc";
- use target::Samba3;
+ require target::Samba3;
$target = new Samba3($opt_bindir);
} elsif ($opt_target eq "win") {
die("Windows tests will not run with socket wrapper enabled.")
if ($opt_socket_wrapper);
$testenv_default = "dc";
- use target::Windows;
+ require target::Windows;
$target = new Windows();
}