From bdd03a4bb7d0d848d01efdb87fba4289fc9a943c Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 31 Oct 2011 15:39:27 -0700 Subject: [PATCH] Remove unchecked return problem in test code Signed-off-by: Steven Dake --- test/testsam.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/testsam.c b/test/testsam.c index 46f0de92..ee4d59f8 100644 --- a/test/testsam.c +++ b/test/testsam.c @@ -532,9 +532,12 @@ static int test4 (void) static int test5_hc_cb (void) { + cs_error_t res; printf ("%s %d\n", __FUNCTION__, ++test5_hc_cb_count); - sam_data_store (&test5_hc_cb_count, sizeof (test5_hc_cb_count)); + res = sam_data_store (&test5_hc_cb_count, sizeof (test5_hc_cb_count)); + if (res != CS_OK) + return 1; if (test5_hc_cb_count > 10) return 1;