]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: update lsfd broken filter test
authorKarel Zak <kzak@redhat.com>
Thu, 2 Nov 2023 13:17:33 +0000 (14:17 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Nov 2023 21:25:47 +0000 (22:25 +0100)
* empty filter is valid in the new implementation

* expression without operators (for example -Q 'FD') is valid. The
  library check is the cell is non-empty in this case.

* update error messages

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/lsfd/filter-broken-exp
tests/ts/lsfd/filter-broken-exp

index 8c14f22a104b786dfc7566388af0588d7ec3e807..6ed2bf0ec93c1cd3de60773a1c7812191ac2f268 100644 (file)
@@ -1,7 +1,4 @@
-lsfd: error: empty filter expression
-lsfd: error: empty filter expression
-lsfd: error: unbalanced parenthesis: )
-lsfd: error: unexpected token: garbage after OP2
-lsfd: error: bool expression is expected: FD
+lsfd: failed to parse "(": syntax error, unexpected end of file
+lsfd: failed to parse ")": syntax error, unexpected ')'
+lsfd: failed to parse "(FD == 1)garbage": syntax error, unexpected HOLDER, expecting end of file
 lsfd: unknown column: NOSUCHCOLUMN
-lsfd: error: no such column: NOSUCHCOLUMN
index bedf4393d21f4c42cd42e8cad1391d3e7ecd3a3a..1cec451cf8ccbea1db310fa46fea72934c72f382 100755 (executable)
@@ -25,11 +25,9 @@ ts_check_test_command "$TS_CMD_LSFD"
 ts_cd "$TS_OUTDIR"
 
 {
-    $TS_CMD_LSFD -Q ''
     $TS_CMD_LSFD -Q '('
     $TS_CMD_LSFD -Q ')'
     $TS_CMD_LSFD -Q '(FD == 1)garbage'
-    $TS_CMD_LSFD -Q 'FD' 
     $TS_CMD_LSFD -Q 'NOSUCHCOLUMN'
 } > $TS_OUTPUT 2>&1