From 0366385618ccc26789fdf3a9cc35ee038de071f6 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 8 Apr 2003 22:07:09 +0000 Subject: 2003-04-08 Havoc Pennington * test/data/invalid-messages/array-with-mixed-types.message: regression test that fails for the moment * dbus/dbus-test.c (dbus_internal_do_not_use_run_tests): reorder tests for convenience * dbus/dbus-marshal.c (_dbus_marshal_validate_arg): don't allow array of nil, it broke things. * test/data/invalid-messages/array-of-nil.message: regression test * test/data/valid-messages/array-of-array-of-uint32.message: happened to write this so added it to suite --- test/data/invalid-messages/array-of-nil.message | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/data/invalid-messages/array-of-nil.message (limited to 'test/data/invalid-messages/array-of-nil.message') diff --git a/test/data/invalid-messages/array-of-nil.message b/test/data/invalid-messages/array-of-nil.message new file mode 100644 index 00000000..e86e6a10 --- /dev/null +++ b/test/data/invalid-messages/array-of-nil.message @@ -0,0 +1,22 @@ +# Message with an array of NIL (not allowed) + +VALID_HEADER +FIELD_NAME name +TYPE STRING +STRING 'org.freedesktop.Foo' +END_LENGTH Header +ALIGN 8 +START_LENGTH Body +TYPE ARRAY +TYPE NIL +UINT32 5 + +## we want it to fail because of type nil, not because the length is no good +## so pad out the message with 5 bytes +BYTE 1 +BYTE 2 +BYTE 3 +BYTE 4 +BYTE 5 + +END_LENGTH Body -- cgit