diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-04-12 20:56:46 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-04-12 21:22:46 -0400 |
commit | 6e40f4f357121617ea243977dc22c0bb46235820 (patch) | |
tree | 653770c988c6dbf40f21ea71c2de1fc53277beee /tests | |
parent | ecfba2d31be97cd4d33f85f36cdac3f7df40b880 (diff) | |
download | gtk+-6e40f4f357121617ea243977dc22c0bb46235820.tar.gz |
Remove assertions in tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testerrors.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/testerrors.c b/tests/testerrors.c index ecdf3c2725..8a68c5eb91 100644 --- a/tests/testerrors.c +++ b/tests/testerrors.c @@ -34,13 +34,13 @@ test_error_trapping (GdkDisplay *gdk_display) gdk_x11_display_error_trap_push (gdk_display); XListProperties (d, 0, &dummy); /* round trip */ error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == BadWindow); + g_assert_true (error == BadWindow); gdk_x11_display_error_trap_push (gdk_display); XSetCloseDownMode (d, 12345); /* not a round trip */ XSetCloseDownMode (d, DestroyAll); error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == BadValue); + g_assert_true (error == BadValue); /* try the same without sync */ gdk_x11_display_error_trap_push (gdk_display); @@ -60,17 +60,17 @@ test_error_trapping (GdkDisplay *gdk_display) gdk_x11_display_error_trap_push (gdk_display); XSetCloseDownMode (d, 12345); error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == BadValue); + g_assert_true (error == BadValue); error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == Success); + g_assert_true (error == Success); gdk_x11_display_error_trap_push (gdk_display); XSetCloseDownMode (d, 12345); gdk_x11_display_error_trap_push (gdk_display); error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == Success); + g_assert_true (error == Success); error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == BadValue); + g_assert_true (error == BadValue); /* try nested, without sync */ gdk_x11_display_error_trap_push (gdk_display); @@ -104,23 +104,23 @@ test_error_trapping (GdkDisplay *gdk_display) gdk_x11_display_error_trap_push (gdk_display); XSync (d, TRUE); /* not an error */ error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == Success); + g_assert_true (error == Success); error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == BadValue); + g_assert_true (error == BadValue); /* non-roundtrip non-error request after error request, inside trap */ gdk_x11_display_error_trap_push (gdk_display); XSetCloseDownMode (d, 12345); XMapWindow (d, DefaultRootWindow (d)); error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == BadValue); + g_assert_true (error == BadValue); /* a non-roundtrip non-error request before error request, inside trap */ gdk_x11_display_error_trap_push (gdk_display); XMapWindow (d, DefaultRootWindow (d)); XSetCloseDownMode (d, 12345); error = gdk_x11_display_error_trap_pop (gdk_display); - g_assert (error == BadValue); + g_assert_true (error == BadValue); /* Not part of any test, just a double-check * that all errors have arrived |