diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-01-04 14:10:05 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-01-05 15:27:43 +1100 |
commit | 4023cf341d5e20a2af882ddee194117d6f83c6cd (patch) | |
tree | 96ffef29706998c20f3381119061e0b49a4e8808 /core | |
parent | 8594b9c5bd456205255ea2241ba224f47480efad (diff) | |
download | blackbird-skiboot-4023cf341d5e20a2af882ddee194117d6f83c6cd.tar.gz blackbird-skiboot-4023cf341d5e20a2af882ddee194117d6f83c6cd.zip |
core/test/run-buddy: add one more test to get to 100% lines covered
We're now only missing some assert() branches in buddy testing.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/test/run-buddy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/test/run-buddy.c b/core/test/run-buddy.c index 80de917a..a0a933dc 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); |