summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-09-17 15:50:49 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-09-17 15:50:49 -0500
commitd8a110034690bbe50e15455be4427c42dcd59dc6 (patch)
tree515f2e41b82403744b898c2f64445f42d1561aea /src
parente9e506ed436859048f6efc3b5962c6809f1a592a (diff)
test-fileio: assume that Buffers may be missing
Diffstat (limited to 'src')
-rw-r--r--src/test/test-fileio.c5
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);