summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/image/spl_load_os.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/image/spl_load_os.c b/test/image/spl_load_os.c
index bf374f2164d..3b2967d017a 100644
--- a/test/image/spl_load_os.c
+++ b/test/image/spl_load_os.c
@@ -58,10 +58,8 @@ static int spl_test_load(struct unit_test_state *uts)
load.read = read_fit_image;
ret = sandbox_find_next_phase(fname, sizeof(fname), true);
- if (ret) {
- printf("(%s not found, error %d)\n", fname, ret);
- return ret;
- }
+ if (ret)
+ ut_assertf(0, "%s not found, error %d\n", fname, ret);
load.filename = fname;
header = spl_get_load_buffer(-sizeof(*header), sizeof(*header));