summaryrefslogtreecommitdiffstats
path: root/test/empty_keys.test
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-01-02 02:08:02 +0100
committerGravatar Nikias Bassen2017-01-02 02:08:02 +0100
commit9f03f8aabcd036c1a97d9cfb6330409127202102 (patch)
treecf69ad328cee5bf9f8b381219a1d2be55d7b5824 /test/empty_keys.test
parent552801556f8537bcdeee2cc93e347a35a0847f7f (diff)
downloadlibplist-9f03f8aabcd036c1a97d9cfb6330409127202102.tar.gz
libplist-9f03f8aabcd036c1a97d9cfb6330409127202102.tar.bz2
test: Add new test case for dictionaries with empty keys
Diffstat (limited to 'test/empty_keys.test')
-rwxr-xr-xtest/empty_keys.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/empty_keys.test b/test/empty_keys.test
new file mode 100755
index 0000000..4291e8c
--- /dev/null
+++ b/test/empty_keys.test
@@ -0,0 +1,12 @@
+## -*- sh -*-
+
+set -e
+
+DATASRC=$top_srcdir/test/data
+TESTFILE=empty_keys.plist
+DATAIN0=$DATASRC/$TESTFILE
+DATAOUT0=$top_builddir/test/data/$TESTFILE.bin
+
+$top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT0
+
+$top_builddir/test/plist_cmp $DATAIN0 $DATAOUT0