[systemd-commits] src/test

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Tue Sep 17 13:51:08 PDT 2013


 src/test/test-fileio.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit d8a110034690bbe50e15455be4427c42dcd59dc6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Tue Sep 17 15:50:49 2013 -0500

    test-fileio: assume that Buffers may be missing

diff --git a/src/test/test-fileio.c b/src/test/test-fileio.c
index 3511f3a..525354b 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);
 



More information about the systemd-commits mailing list