Changeset 555
- Timestamp:
- 08/18/08 11:57:03 (3 months ago)
- Files:
-
- trunk/tests/check_obex.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tests/check_obex.c
r550 r555 83 83 fail_unless(smlTransportSetConnectionType(tsp, SML_TRANSPORT_CONNECTION_TYPE_NET, &error), NULL); 84 84 fail_unless(error == NULL, NULL); 85 86 fail_unless(smlTransportInitialize(tsp, &error), NULL); 87 fail_unless(error == NULL, NULL); 88 89 fail_unless(smlTransportFinalize(tsp, &error), NULL); 85 86 /* Don't use the default port 650 here because this is a reserved port in Unix. 87 * Therefore the port is usually only allowed for the root user. 88 */ 89 fail_unless(smlTransportSetConfigOption(tsp, "PORT", "10104", &error), NULL); 90 91 fail_unless(smlTransportInitialize(tsp, &error), smlErrorPrint(&error)); 92 fail_unless(error == NULL, NULL); 93 94 fail_unless(smlTransportFinalize(tsp, &error), smlErrorPrint(&error)); 90 95 fail_unless(error == NULL, NULL); 91 96 … … 185 190 g_atomic_int_inc(&client_disconnect_done); 186 191 break; 192 case SML_TRANSPORT_EVENT_ERROR: 193 fail(smlErrorPrint(&error)); 194 break; 187 195 default: 188 fail( NULL);196 fail(g_strdup_printf("Unknown event %d.", type)); 189 197 } 190 198
