From 77ad891e6885e29e699fedbe49256b4415201c07 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 3 Jan 2025 15:22:04 +0100 Subject: [PATCH] test: Remove always-true assertion The offset is not deterministic Part-of: --- subprojects/gstreamer/tests/check/gst/gstbuffer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gstreamer/tests/check/gst/gstbuffer.c b/subprojects/gstreamer/tests/check/gst/gstbuffer.c index dbb8478bfd..31e63f825c 100644 --- a/subprojects/gstreamer/tests/check/gst/gstbuffer.c +++ b/subprojects/gstreamer/tests/check/gst/gstbuffer.c @@ -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);