diff options
author | Guy Harris <gharris@sonic.net> | 2020-06-13 20:25:31 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-06-13 20:25:31 -0700 |
commit | 261c4cb1744b5340a3ff1c354bd6d8e8707f80e6 (patch) | |
tree | b3ce16b4ddfbba5989c9bc9348c27c5734aa3798 /tests | |
parent | fc86a108aa2e8fc1abf5eb464fc3508bbbe84c72 (diff) | |
download | tcpdump-261c4cb1744b5340a3ff1c354bd6d8e8707f80e6.tar.gz |
TESTrun: canonicalize the path of the standard error file.
DEC's decisions and the Multics developers' decisions affect us to this
day. (Unix went with the Multics use of - to indicate options; DOS went
with the DEC use of / to indicate options, so they had to use \ as the
pathname component separator, and Windows followed suit, so here we
are.)
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/TESTrun | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/TESTrun b/tests/TESTrun index a258fa33..ac95270a 100755 --- a/tests/TESTrun +++ b/tests/TESTrun @@ -167,8 +167,9 @@ sub runtest { # Compare the standard error with what we think it should be. # if ($^O eq 'MSWin32') { + my $winoutput = File::Spec->canonpath($output); my $canonstderrlog = File::Spec->canonpath($stderrlog); - $nr = system "fc/lb1000/t/1 $output.stderr $canonstderrlog >tests/DIFF/$outputbase.stderr.diff"; + $nr = system "fc/lb1000/t/1 $winoutput.stderr $canonstderrlog >tests/DIFF/$outputbase.stderr.diff"; } else { $nr = system "diff $output.stderr $stderrlog >tests/DIFF/$outputbase.stderr.diff"; } |