diff options
author | Havoc Pennington <hp@redhat.com> | 2003-02-16 07:20:54 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-02-16 07:20:54 +0000 |
commit | 4a8a03aeb7430a570618ffec08616c4c87c4ee73 (patch) | |
tree | a3ae8240f121e1bfe5bf5df08890ae933f5489d7 /test | |
parent | 30265b80acc505602e38d19c7d3036c19ee39340 (diff) |
2003-02-16 Havoc Pennington <hp@pobox.com>
* dbus/dbus-connection.c (dbus_connection_set_change_sigpipe):
allow people to avoid setting SIGPIPE to SIG_IGN
(_dbus_connection_new_for_transport): disable SIGPIPE unless
we've been asked not to
Diffstat (limited to 'test')
-rw-r--r-- | test/.cvsignore | 6 | ||||
-rw-r--r-- | test/data/auth/fail-after-n-attempts.auth-script | 33 | ||||
-rw-r--r-- | test/data/valid-messages/unknown-header-field.message | 14 |
3 files changed, 53 insertions, 0 deletions
diff --git a/test/.cvsignore b/test/.cvsignore index 3a3c50d9..c3d07582 100644 --- a/test/.cvsignore +++ b/test/.cvsignore @@ -9,3 +9,9 @@ echo-server echo-client bus-test unbase64 +*.bb +*.bbg +*.da +*.gcov +break-loader +spawn-test diff --git a/test/data/auth/fail-after-n-attempts.auth-script b/test/data/auth/fail-after-n-attempts.auth-script new file mode 100644 index 00000000..75bd3801 --- /dev/null +++ b/test/data/auth/fail-after-n-attempts.auth-script @@ -0,0 +1,33 @@ +## this tests that after retrying too often we fail + +SERVER +NO_CREDENTIALS + +# 1 +SEND 'AUTH EXTERNAL USERNAME_BASE64' +EXPECT_COMMAND REJECTED +EXPECT_STATE WAITING_FOR_INPUT + +# 2 +SEND 'AUTH EXTERNAL USERNAME_BASE64' +EXPECT_COMMAND REJECTED +EXPECT_STATE WAITING_FOR_INPUT + +# 3 +SEND 'AUTH EXTERNAL USERNAME_BASE64' +EXPECT_COMMAND REJECTED +EXPECT_STATE WAITING_FOR_INPUT + +# 4 +SEND 'AUTH EXTERNAL USERNAME_BASE64' +EXPECT_COMMAND REJECTED +EXPECT_STATE WAITING_FOR_INPUT + +# 5 +SEND 'AUTH EXTERNAL USERNAME_BASE64' +EXPECT_COMMAND REJECTED +EXPECT_STATE WAITING_FOR_INPUT + +# 6 +SEND 'AUTH EXTERNAL USERNAME_BASE64' +EXPECT_STATE NEED_DISCONNECT diff --git a/test/data/valid-messages/unknown-header-field.message b/test/data/valid-messages/unknown-header-field.message new file mode 100644 index 00000000..18ab379c --- /dev/null +++ b/test/data/valid-messages/unknown-header-field.message @@ -0,0 +1,14 @@ +## message with a 'name' header field and unknown 'unkn' field + +## VALID_HEADER includes a LENGTH Header and LENGTH Body +VALID_HEADER +FIELD_NAME name +TYPE STRING +STRING 'org.freedesktop.Foo' +FIELD_NAME unkn +TYPE INT32 +INT32 0xfeeb +ALIGN 8 +END_LENGTH Header +START_LENGTH Body +END_LENGTH Body |