]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: narrow scope of faulty join args
authorJustin Tracey <j2tracey@gmail.com>
Fri, 3 Sep 2021 15:46:53 +0000 (11:46 -0400)
committerPádraig Brady <P@draigBrady.com>
Sun, 5 Sep 2021 11:10:41 +0000 (12:10 +0100)
* tests/misc/join.pl: Only test invalid-j with an invalid -j field,
not with missing operands as well.

tests/misc/join.pl

index 8d6f17079b4bf859d7b278db93398e1b59557146..bfd9e6f9db58d65ca2305371a057e41f417d3ebb 100755 (executable)
@@ -176,7 +176,7 @@ my @tv = (
  ["a\n", "b\n"], " a b\n", 0],
 
 # FIXME: change this to ensure the diagnostic makes sense
-['invalid-j', '-j x', {}, "", 1,
+['invalid-j', '-j x', ["", ""], "", 1,
  "$prog: invalid field number: 'x'\n"],
 
 # With ordering check, inputs in order