about summary refs log tree commit homepage
path: root/xt/perf-msgview.t
diff options
authorEric Wong <e@80x24.org>2019-12-18 03:36:44 +0000
committerEric Wong <e@80x24.org>2019-12-19 04:07:45 +0000
commit3c313f9034aac96182e2efdc2f92c40803626f32 (patch)
tree5e105f4b698da5695c22edea1a6e2033e0ce78e4 /xt/perf-msgview.t
parent684d26cecc0891261783be179909b0e434692b25 (diff)
We want to be able to use run_script with *.t files, so
t/common.perl putting subs into the top-level "main" namespace
won't work.  Instead, make it a module which uses Exporter
like other libraries.
Diffstat (limited to 'xt/perf-msgview.t')
1 files changed, 1 insertions, 1 deletions
diff --git a/xt/perf-msgview.t b/xt/perf-msgview.t
index 22d8ce20..11bd3a5d 100644
--- a/xt/perf-msgview.t
+++ b/xt/perf-msgview.t
@@ -6,7 +6,7 @@ use Test::More;
 use Benchmark qw(:all);
 use PublicInbox::Inbox;
 use PublicInbox::View;
-require './t/common.perl';
+use PublicInbox::TestCommon;
 my $inboxdir = $ENV{GIANT_INBOX_DIR} // $ENV{GIANT_PI_DIR};
 plan skip_all => "GIANT_INBOX_DIR not defined for $0" unless $inboxdir;