Add tests for broken databases.

Make sure we detect the error and don't crash.
This commit is contained in:
Felix Geyer 2013-04-20 19:03:27 +02:00
parent e16720d06d
commit f1bebe904a
5 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<KeePassFile>
<Root>
<Group>
<UUID>lmU+9n0aeESKZvcEze+bRg==</UUID>
<Name>Test</Name>
<Entry>
<String>
<Key>Title</Key>
<Value>Sample Entry 1</Value>
</String>
</Group>
</Root>
</KeePassFile>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<KeePassFile>
<Root>
<Group>
<Name>Test</Name>
</Group>
</Root>
</KeePassFile>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<KeePassFile>
<Root>
</Root>
</KeePassFile>