From 43ae9d35badc43a5f14f439a54d761988c73e167 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Thu, 5 Feb 2015 14:50:50 +0100 Subject: test: Add more test cases covering binary plist issues --- test/Makefile.am | 7 +++++-- test/data/malformed_dict.bplist | Bin 0 -> 77 bytes test/data/order.bplist | Bin 0 -> 77 bytes test/data/order.plist | 27 +++++++++++++++++++++++++++ test/data/recursion.bplist | Bin 0 -> 60 bytes 5 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 test/data/malformed_dict.bplist create mode 100644 test/data/order.bplist create mode 100644 test/data/order.plist create mode 100644 test/data/recursion.bplist (limited to 'test') diff --git a/test/Makefile.am b/test/Makefile.am index 77122be..1f084db 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -26,9 +26,12 @@ TESTS = \ timezone2.test \ signedunsigned1.test \ signedunsigned2.test \ - hex.test + hex.test \ + order.test \ + recursion.test \ + malformed_dict.test -EXTRA_DIST = $(TESTS) data/1.plist data/2.plist data/3.plist data/4.plist data/5.plist data/6.plist data/7.plist data/signed.plist data/signed.bplist data/unsigned.plist data/unsigned.bplist data/hex.plist +EXTRA_DIST = $(TESTS) data/1.plist data/2.plist data/3.plist data/4.plist data/5.plist data/6.plist data/7.plist data/signed.plist data/signed.bplist data/unsigned.plist data/unsigned.bplist data/hex.plist data/order.bplist data/recursion.bplist data/malformed_dict.bplist TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) diff --git a/test/data/malformed_dict.bplist b/test/data/malformed_dict.bplist new file mode 100644 index 0000000..0de4cd7 Binary files /dev/null and b/test/data/malformed_dict.bplist differ diff --git a/test/data/order.bplist b/test/data/order.bplist new file mode 100644 index 0000000..5ea86f8 Binary files /dev/null and b/test/data/order.bplist differ diff --git a/test/data/order.plist b/test/data/order.plist new file mode 100644 index 0000000..b2cbdcb --- /dev/null +++ b/test/data/order.plist @@ -0,0 +1,27 @@ + + + + + test + + 1 + 1 + + foo + + + 1 + + + test + foo + + + 1 + + + 1 + + + + diff --git a/test/data/recursion.bplist b/test/data/recursion.bplist new file mode 100644 index 0000000..3f4b42a Binary files /dev/null and b/test/data/recursion.bplist differ -- cgit v1.1-32-gdbae