mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
test-fileio: assume that Buffers may be missing
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user