diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-09-02 18:42:10 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-09-03 10:23:44 +0200 |
commit | 92a063498d3f23c1fefe4ee70d86c329e325c1ad (patch) | |
tree | 930152158c171359164030957738ea0ebe6ad96e | |
parent | 0ad11f04ae8b1285b300170e9f39a45fb5d581ed (diff) | |
download | librest-92a063498d3f23c1fefe4ee70d86c329e325c1ad.tar.gz |
tests/proxy: Make sure GError is unset when call succeeds
https://bugzilla.gnome.org/show_bug.cgi?id=735921
-rw-r--r-- | tests/proxy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/proxy.c b/tests/proxy.c index 7f97e9c..01316dd 100644 --- a/tests/proxy.c +++ b/tests/proxy.c @@ -115,6 +115,7 @@ ping_test (RestProxy *proxy) g_object_unref (call); return; } + g_assert(error == NULL); if (rest_proxy_call_get_status_code (call) != SOUP_STATUS_OK) { g_printerr ("wrong response code\n"); @@ -148,6 +149,7 @@ echo_test (RestProxy *proxy) g_object_unref (call); return; } + g_assert(error == NULL); if (rest_proxy_call_get_status_code (call) != SOUP_STATUS_OK) { g_printerr ("wrong response code\n"); @@ -187,6 +189,7 @@ reverse_test (RestProxy *proxy) g_object_unref (call); return; } + g_assert(error == NULL); if (rest_proxy_call_get_status_code (call) != SOUP_STATUS_OK) { g_printerr ("wrong response code\n"); @@ -229,6 +232,7 @@ status_ok_test (RestProxy *proxy, int status) g_object_unref (call); return; } + g_assert(error == NULL); if (rest_proxy_call_get_status_code (call) != status) { g_printerr ("wrong response code, got %d\n", rest_proxy_call_get_status_code (call)); @@ -285,6 +289,7 @@ test_status_ok (RestProxy *proxy, const char *function) g_object_unref (call); return; } + g_assert(error == NULL); if (rest_proxy_call_get_status_code (call) != SOUP_STATUS_OK) { g_printerr ("wrong response code, got %d\n", rest_proxy_call_get_status_code (call)); |