2009-06-16 Xan Lopez <xlopez@igalia.com>
authorxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jun 2009 18:36:04 +0000 (18:36 +0000)
committerxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Jun 2009 18:36:04 +0000 (18:36 +0000)
        Reviewed by Gustavo Noronha.

        Do not use g_assert_cmpint to test for NULL pointer, just
        g_assert.

        * tests/testnetworkrequest.c:
        (test_network_request_create_destroy):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@44729 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/gtk/ChangeLog
WebKit/gtk/tests/testnetworkrequest.c

index 486d90e..4a9953e 100644 (file)
@@ -1,3 +1,13 @@
+2009-06-16  Xan Lopez  <xlopez@igalia.com>
+
+        Reviewed by Gustavo Noronha.
+
+        Do not use g_assert_cmpint to test for NULL pointer, just
+        g_assert.
+
+        * tests/testnetworkrequest.c:
+        (test_network_request_create_destroy):
+
 2009-06-15  Xan Lopez  <xlopez@igalia.com>
 
         Reviewed by Gustavo Noronha.
index a4f2885..7be85fe 100644 (file)
@@ -36,7 +36,7 @@ static void test_network_request_create_destroy()
     request = WEBKIT_NETWORK_REQUEST(g_object_new(WEBKIT_TYPE_NETWORK_REQUEST, "uri", "http://debian.org/", NULL));
     g_assert(WEBKIT_IS_NETWORK_REQUEST(request));
     message = webkit_network_request_get_message(request);
-    g_assert_cmpint(message, ==, NULL);
+    g_assert(message);
     g_object_unref(request);
 
     /* Test creation with SoupMessage */