diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-09-17 15:50:49 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-09-17 15:50:49 -0500 |
commit | d8a110034690bbe50e15455be4427c42dcd59dc6 (patch) | |
tree | 515f2e41b82403744b898c2f64445f42d1561aea /src/test/test-fileio.c | |
parent | e9e506ed436859048f6efc3b5962c6809f1a592a (diff) |
test-fileio: assume that Buffers may be missing
Diffstat (limited to 'src/test/test-fileio.c')
-rw-r--r-- | src/test/test-fileio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/test-fileio.c b/src/test/test-fileio.c index 3511f3a3a4..525354b9cb 100644 --- a/src/test/test-fileio.c +++ b/src/test/test-fileio.c @@ -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); |