Remove the @INC shifts from the test files. This is no longer needed since the tools do their %INC mangling

This commit is contained in:
Brian Fraser
2012-11-21 13:58:40 -03:00
parent 7a51df2c35
commit d6a7bf0cdb
55 changed files with 0 additions and 148 deletions

View File

@@ -13,17 +13,6 @@ use Test::More tests => 44;
use PerconaTest;
# Normally we want $trunk/common in @INC so we can "use MaakitTest" and
# other modules path-independently. However, mk-query-digest uses
# HTMLProtocolParser which is a subclass of ProtocolParser, so the former
# must "use base 'ProtocolParser'" which causes Perl to load ProtocolParser
# from @INC. This causes errors about ProtocolParser::new() being redefined:
# once in mk-query-digest's copy of the module and again from the actual
# module in $trunk/common. We remove $trunk/common from @INC so Perl won't
# find/load it again.\n
shift @INC; # our unshift (above)
shift @INC; # PerconaTest's unshift
require "$trunk/bin/pt-query-digest";
# #############################################################################