Avoid test failure with for a -Dusesitecustomize perl.
Gisle Aas [Mon, 29 Jan 2007 16:54:38 +0000 (16:54 +0000)]
p4raw-id: //depot/perl@30059

t/run/switchd.t

index 30ae53b..e4f2706 100644 (file)
@@ -34,13 +34,13 @@ __SWDTEST__
     push @tmpfiles, $filename;
     $| = 1; # Unbufferize.
     $r = runperl(
-                switches => [ '-Ilib', '-d:switchd' ],
+                switches => [ '-Ilib', '-f', '-d:switchd' ],
                 progfile => $filename,
                 args => ['3'],
                );
     like($r, qr/^sub<Devel::switchd::import>;import<Devel::switchd>;DB<main,swdtest.tmp,9>;sub<Foo::foo>;DB<Foo,swdtest.tmp,5>;DB<Foo,swdtest.tmp,6>;DB<Foo,swdtest.tmp,6>;sub<Bar::bar>;DB<Bar,swdtest.tmp,2>;sub<Bar::bar>;DB<Bar,swdtest.tmp,2>;sub<Bar::bar>;DB<Bar,swdtest.tmp,2>;$/);
     $r = runperl(
-                switches => [ '-Ilib', '-d:switchd=a,42' ],
+                switches => [ '-Ilib', '-f', '-d:switchd=a,42' ],
                 progfile => $filename,
                 args => ['4'],
                );