chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-icmp6-nd: Add helper function to get the IPv6 link MTU
[elogind.git]
/
src
/
journal
/
test-mmap-cache.c
diff --git
a/src/journal/test-mmap-cache.c
b/src/journal/test-mmap-cache.c
index b7bb260fcfdce9516c4ce010b763861c240d5e34..3fcd77475d99f442101b6be4cd2ff2ddbe69ef12 100644
(file)
--- a/
src/journal/test-mmap-cache.c
+++ b/
src/journal/test-mmap-cache.c
@@
-38,37
+38,37
@@
int main(int argc, char *argv[]) {
assert_se(m = mmap_cache_new());
x = mkostemp_safe(px, O_RDWR|O_CLOEXEC);
assert_se(m = mmap_cache_new());
x = mkostemp_safe(px, O_RDWR|O_CLOEXEC);
- assert(x >= 0);
+ assert
_se
(x >= 0);
unlink(px);
y = mkostemp_safe(py, O_RDWR|O_CLOEXEC);
unlink(px);
y = mkostemp_safe(py, O_RDWR|O_CLOEXEC);
- assert(y >= 0);
+ assert
_se
(y >= 0);
unlink(py);
z = mkostemp_safe(pz, O_RDWR|O_CLOEXEC);
unlink(py);
z = mkostemp_safe(pz, O_RDWR|O_CLOEXEC);
- assert(z >= 0);
+ assert
_se
(z >= 0);
unlink(pz);
r = mmap_cache_get(m, x, PROT_READ, 0, false, 1, 2, NULL, &p);
unlink(pz);
r = mmap_cache_get(m, x, PROT_READ, 0, false, 1, 2, NULL, &p);
- assert(r >= 0);
+ assert
_se
(r >= 0);
r = mmap_cache_get(m, x, PROT_READ, 0, false, 2, 2, NULL, &q);
r = mmap_cache_get(m, x, PROT_READ, 0, false, 2, 2, NULL, &q);
- assert(r >= 0);
+ assert
_se
(r >= 0);
- assert((uint8_t*) p + 1 == (uint8_t*) q);
+ assert
_se
((uint8_t*) p + 1 == (uint8_t*) q);
r = mmap_cache_get(m, x, PROT_READ, 1, false, 3, 2, NULL, &q);
r = mmap_cache_get(m, x, PROT_READ, 1, false, 3, 2, NULL, &q);
- assert(r >= 0);
+ assert
_se
(r >= 0);
- assert((uint8_t*) p + 2 == (uint8_t*) q);
+ assert
_se
((uint8_t*) p + 2 == (uint8_t*) q);
r = mmap_cache_get(m, x, PROT_READ, 0, false, 16ULL*1024ULL*1024ULL, 2, NULL, &p);
r = mmap_cache_get(m, x, PROT_READ, 0, false, 16ULL*1024ULL*1024ULL, 2, NULL, &p);
- assert(r >= 0);
+ assert
_se
(r >= 0);
r = mmap_cache_get(m, x, PROT_READ, 1, false, 16ULL*1024ULL*1024ULL+1, 2, NULL, &q);
r = mmap_cache_get(m, x, PROT_READ, 1, false, 16ULL*1024ULL*1024ULL+1, 2, NULL, &q);
- assert(r >= 0);
+ assert
_se
(r >= 0);
- assert((uint8_t*) p + 1 == (uint8_t*) q);
+ assert
_se
((uint8_t*) p + 1 == (uint8_t*) q);
mmap_cache_unref(m);
mmap_cache_unref(m);