1
0
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:
Zbigniew Jędrzejewski-Szmek 2013-09-17 15:50:49 -05:00
parent e9e506ed43
commit d8a1100346

View File

@ -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);