From 80cb24f5015433b3d63084bb4c230b10d1c33652 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 1 Mar 2015 19:16:23 +0100 Subject: [PATCH] integration/query.sh: Check that empty commands work fine. --- t/integration/query.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/integration/query.sh b/t/integration/query.sh index 5bd09b4..4656856 100755 --- a/t/integration/query.sh +++ b/t/integration/query.sh @@ -77,6 +77,10 @@ output="$( run_sysdb -H "$SOCKET_FILE" -c INVALID 2>&1 )" && exit 1 echo "$output" | grep "Failed to parse query 'INVALID'" echo "$output" | grep "parse error: syntax error" +# Empty query. +output="$( run_sysdb -H "$SOCKET_FILE" -c '' )" +test -z "$output" + # Simple, successful commands. output="$( run_sysdb -H "$SOCKET_FILE" -c 'LIST hosts' )" echo "$output" \ -- 2.30.2