mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 15:12:58 +00:00
test: Remove always-true assertion
The offset is not deterministic Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8229>
This commit is contained in:
parent
72df7ab3bd
commit
77ad891e68
1 changed files with 4 additions and 1 deletions
|
@ -761,7 +761,10 @@ GST_START_TEST (test_find)
|
|||
|
||||
size = gst_buffer_get_sizes (buf, &offset, &maxalloc);
|
||||
fail_unless (size == 25);
|
||||
fail_unless (offset >= 0);
|
||||
/* NOTE: The offset isn't checked for the buffer since it's not deterministic
|
||||
* (there could be pre-allocated memory before). The only check that could be
|
||||
* done is to check that it's >= 0 which ... will always be TRUE since it's an
|
||||
* unsigned integer ;) */
|
||||
fail_unless (maxalloc >= 25);
|
||||
fail_unless (gst_buffer_n_memory (buf) == 4);
|
||||
|
||||
|
|
Loading…
Reference in a new issue