diff options
Diffstat (limited to 'src/test')
-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); |