mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
check: don't memcmp twice
Simply call fail() in the condition after the first memcmp.
This commit is contained in:
parent
a65e18d890
commit
a6e72aa28f
1 changed files with 2 additions and 3 deletions
|
@ -559,9 +559,8 @@ gst_check_buffer_data (GstBuffer * buffer, gconstpointer data, gsize size)
|
|||
gst_util_dump_mem (info.data, info.size);
|
||||
g_print ("\nExpected data:\n");
|
||||
gst_util_dump_mem (data, size);
|
||||
fail ("buffer contents not equal");
|
||||
}
|
||||
fail_unless (memcmp (info.data, data, size) == 0,
|
||||
"buffer contents not equal");
|
||||
gst_buffer_unmap (buffer, &info);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue