From d88d992927467a9d5bc2733cc01e3dda4c5de234 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 19 Apr 2019 08:09:31 +0000 Subject: t/hl_mod: workaround w3m not handling ' This fixes a test failure on my Debian buster system. Bug report filed for w3m to handle "'": https://bugs.debian.org/927409 and for "highlight" to favor "'" in case other browsers fail: https://bugs.debian.org/927410 --- t/hl_mod.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't') diff --git a/t/hl_mod.t b/t/hl_mod.t index 84a4b576..fc7b712c 100644 --- a/t/hl_mod.t +++ b/t/hl_mod.t @@ -30,6 +30,10 @@ my $orig = $str; require File::Temp; my $cmd = [ qw(w3m -T text/html -dump -config /dev/null) ]; my ($out, $err) = ('', ''); + + # workaround https://bugs.debian.org/927409 + $$ref =~ s/'/'/sg; + IPC::Run::run($cmd, \('
'.$$ref.'
'), \$out, \$err); # expand tabs and normalize whitespace, # w3m doesn't preserve tabs -- cgit v1.2.3-24-ge0c7