~ubuntu-branches/ubuntu/oneiric/dbus-glib/oneiric-updates

« back to all changes in this revision

Viewing changes to test/core/test-dbus-glib.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-09-29 23:49:03 UTC
  • mfrom: (1.1.7 upstream) (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090929234903-oaprxcpac2lvd9hs
Tags: 0.82-2
* debian/patches/10_support_duplicate_object_registrations.patch
  - Pull patch from upstream git which allows duplicate object registrations
    and fixes a regression introduced in 0.82.
    (Closes: #540421, #541712, #542513, #544174, #546044)
* Bump Standards-Version to 3.8.3. No further changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
768
768
  g_print ("ThrowError failed (as expected) returned error: %s\n", error->message);
769
769
  g_clear_error (&error);
770
770
 
 
771
  g_print ("Calling ThrowNotSupported\n");
 
772
  if (dbus_g_proxy_call (proxy, "ThrowNotSupported", &error,
 
773
                         G_TYPE_INVALID, G_TYPE_INVALID) != FALSE)
 
774
    lose ("ThrowNotSupported call unexpectedly succeeded!");
 
775
 
 
776
  if (error->domain != DBUS_GERROR || error->code != DBUS_GERROR_NOT_SUPPORTED)
 
777
    lose ("ThrowNotSupported call returned unexpected error: %s #%u: %s %s",
 
778
          g_quark_to_string (error->domain), error->code,
 
779
          dbus_g_error_get_name (error), error->message);
 
780
 
 
781
  g_print ("ThrowNotSupported correctly returned error: %s\n", error->message);
 
782
  g_clear_error (&error);
 
783
 
771
784
  g_print ("Calling IncrementRetvalError (for error)\n");
772
785
  error = NULL;
773
786
  v_UINT32_2 = 0;
1399
1412
 
1400
1413
    variant = g_new0 (GValue, 1);
1401
1414
    g_value_init (variant, dbus_g_type_get_collection ("GArray", G_TYPE_INT));
1402
 
    g_value_set_boxed_take_ownership (variant, array);
 
1415
    g_value_take_boxed (variant, array);
1403
1416
 
1404
1417
    if (!dbus_g_proxy_call (proxy, "ProcessVariantOfArrayOfInts123", &error,
1405
1418
                            G_TYPE_VALUE, variant,