~pete-woods/hud/random-build-changes

« back to all changes in this revision

Viewing changes to libhud-client/connection.c

  • Committer: Tarmac
  • Author(s): Pete Woods
  • Date: 2013-03-29 16:23:01 UTC
  • mfrom: (350.3.11 libhud-client-tests)
  • Revision ID: tarmac-20130329162301-4dsywkyyilki572d
Increase test coverage of libhud-client.

Approved by Ted Gould, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
 
246
246
        gint modelrev = 0;
247
247
 
248
 
        return _hud_service_com_canonical_hud_call_create_query_sync(connection->priv->proxy,
 
248
        GError *error = NULL;
 
249
        gboolean success = _hud_service_com_canonical_hud_call_create_query_sync(connection->priv->proxy,
249
250
                query,
250
251
                query_path,
251
252
                results_name,
252
253
                appstack_name,
253
254
                &modelrev,
254
255
                NULL,  /* GCancellable */
255
 
                NULL); /* GError */
 
256
                &error); /* GError */
 
257
 
 
258
        if(!success) {
 
259
          g_warning("Could not make client connection: [%s]", error->message);
 
260
          g_error_free(error);
 
261
        }
 
262
 
 
263
        return success;
256
264
}
257
265
 
258
266
/**
269
277
        g_return_val_if_fail(HUD_CLIENT_IS_CONNECTION(connection), NULL);
270
278
 
271
279
        return connection->priv->address;
272
 
}
 
280
}
 
 
b'\\ No newline at end of file'