projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bac96a
)
Use a value based on OSTREE_MAX_METADATA_SIZE
author
Bartłomiej Piotrowski
<b@bpiotrowski.pl>
Fri, 26 May 2023 10:09:13 +0000
(12:09 +0200)
committer
Bartłomiej Piotrowski
<b@bpiotrowski.pl>
Fri, 26 May 2023 10:09:13 +0000
(12:09 +0200)
tests/test-basic-c.c
patch
|
blob
|
history
diff --git
a/tests/test-basic-c.c
b/tests/test-basic-c.c
index b9a15ef139fa4cd6651c399dc3d006ec6983551a..a01cef6f064539afbee95f07050c49f7c0a004c8 100644
(file)
--- 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);