mirror of
https://github.com/systemd/systemd.git
synced 2025-02-09 13:57:42 +03:00
test-fileio: assume that Buffers may be missing
This commit is contained in:
parent
e9e506ed43
commit
d8a1100346
@ -245,7 +245,10 @@ static void test_status_field(void) {
|
||||
puts(p);
|
||||
assert_se(safe_atollu(p, &total) == 0);
|
||||
|
||||
assert_se(get_status_field("/proc/meminfo", "\nBuffers:", &s) == 0);
|
||||
r = get_status_field("/proc/meminfo", "\nBuffers:", &s);
|
||||
if (r == -ENOENT)
|
||||
return;
|
||||
assert(r == 0);
|
||||
puts(s);
|
||||
assert_se(safe_atollu(s, &buffers) == 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user