[Skiboot] [PATCH] core/test/run-buddy: add one more test to get to 100% lines covered
Stewart Smith
stewart at linux.vnet.ibm.com
Wed Jan 4 17:34:22 AEDT 2017
We're now only missing some assert() branches in buddy testing.
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
core/test/run-buddy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/test/run-buddy.c b/core/test/run-buddy.c
index 80de917..a0a933d 100644
--- a/core/test/run-buddy.c
+++ b/core/test/run-buddy.c
@@ -1,4 +1,4 @@
-/* Copyright 2016 IBM Corp.
+/* Copyright 2016-2017 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,6 +38,7 @@ int main(void)
buddy_reserve(b, 127, 0);
buddy_reserve(b, 0, 4);
+ assert(buddy_reserve(b, 0, 4) == false);
a[0] = buddy_alloc(b, 0);
assert(a[0] >= 0);
--
2.9.3
More information about the Skiboot
mailing list