diff options
author | Jim Meyering <jim@meyering.net> | 2006-06-18 06:31:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-06-18 06:31:25 +0000 |
commit | 89c21e704351bad4dcd50ca64f795520ede26049 (patch) | |
tree | 6fa6730cdca53f8d5053ba05585f44f59eb0a737 /tests/misc | |
parent | ef8e124bb2a709924d0f07234f77660ea1d471b8 (diff) | |
download | coreutils-89c21e704351bad4dcd50ca64f795520ede26049.tar.xz |
make error output a little clearer
Diffstat (limited to 'tests/misc')
-rwxr-xr-x | tests/misc/pwd-long | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/misc/pwd-long b/tests/misc/pwd-long index 7975960e4..62b08ae0a 100755 --- a/tests/misc/pwd-long +++ b/tests/misc/pwd-long @@ -58,6 +58,14 @@ my $pwd_binary = "$build_src_dir/pwd"; -x $pwd_binary or die "$ME: $pwd_binary is not an executable file\n"; chomp (my $actual = `$pwd_binary`); -$expected eq $actual - or die "$ME: $expected\n$actual\n"; +if ($expected neq $actual) + { + my $e_len = length $expected; + my $a_len = length $actual; + warn "expected len: $e_len\n"; + warn "actual len: $a_len\n"; + warn "expected: $expected\n"; + warn "actual: $actual\n"; + exit 1; + } EOF |