]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add empty column test
authorKarel Zak <kzak@redhat.com>
Mon, 4 Jun 2018 13:27:54 +0000 (15:27 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 4 Jun 2018 13:27:54 +0000 (15:27 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/column/table-empty-column [new file with mode: 0644]
tests/ts/column/table

diff --git a/tests/expected/column/table-empty-column b/tests/expected/column/table-empty-column
new file mode 100644 (file)
index 0000000..ed32da9
--- /dev/null
@@ -0,0 +1 @@
+:a:b
index 5c89d5eafb73a3d5d7e4e73fd84cb42f15ac0b03..b6dbd5d92339b22128d9da2f4ec14f513cbca1b4 100755 (executable)
@@ -104,4 +104,8 @@ $TS_CMD_COLUMN  --table $TS_SELF/files/mountinfo \
                >> $TS_OUTPUT 2>&1
 ts_finalize_subtest
 
+ts_init_subtest "empty-column"
+printf ':a:b\n' | $TS_CMD_COLUMN --table --separator ':' --output-separator  ':' >> $TS_OUTPUT 2>&1
+ts_finalize_subtest
+
 ts_finalize