From: Bartłomiej Piotrowski Date: Fri, 26 May 2023 10:09:13 +0000 (+0200) Subject: Use a value based on OSTREE_MAX_METADATA_SIZE X-Git-Tag: archive/raspbian/2023.7-3+rpi1~1^2~9^2~1^2~23^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=99f6356b5b4f64069bda7f26c8505608fad07e0c;p=ostree.git Use a value based on OSTREE_MAX_METADATA_SIZE --- diff --git a/tests/test-basic-c.c b/tests/test-basic-c.c index b9a15ef1..a01cef6f 100644 --- a/tests/test-basic-c.c +++ b/tests/test-basic-c.c @@ -417,7 +417,7 @@ test_big_metadata (void) g_assert_no_error (error); g_assert (ret); - const size_t len = 20 * 1024 * 1024; + const size_t len = OSTREE_MAX_METADATA_SIZE + 1; g_assert_cmpint (len, >, OSTREE_MAX_METADATA_SIZE); g_autofree char *large_buf = g_malloc (len); memset (large_buf, 0x42, len);