selftest: Use "require" rather than "use" keyword so .pm files don't have to be provi...
authorJelmer Vernooij <jelmer@samba.org>
Wed, 16 Jan 2008 20:30:58 +0000 (21:30 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 16 Jan 2008 20:30:58 +0000 (21:30 +0100)
source/selftest/selftest.pl

index 46c3846b544167a7fb7d6b5e70789089c00b1903..004332a1fc0b131fd3fdc9bc8c6430e85274f399 100755 (executable)
@@ -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();
 }