[retro-gtk] reftest: Asserts the video output isn't NULL
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] reftest: Asserts the video output isn't NULL
- Date: Fri, 13 Apr 2018 10:04:14 +0000 (UTC)
commit 4ef04f05d6294b6728c9b395b0db338094efddb5
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Apr 13 12:01:57 2018 +0200
reftest: Asserts the video output isn't NULL
This allows to properly fail the test when there is no video output
rather than to fail unreferencing NULL later.
tests/retro-reftest.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/tests/retro-reftest.c b/tests/retro-reftest.c
index f4c49dd..c705ed1 100644
--- a/tests/retro-reftest.c
+++ b/tests/retro-reftest.c
@@ -248,6 +248,7 @@ retro_reftest_test_video (RetroReftest *reftest)
GError *error = NULL;
screenshot = retro_pixdata_to_pixbuf (reftest->pixdata);
+ g_assert_nonnull (screenshot);
reference_screenshot = gdk_pixbuf_new_from_file (arg_video_file, &error);
g_assert_no_error (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]