aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin D. Howard <gavin@gavinhoward.com>2023-02-27 22:06:08 -0700
committerGavin D. Howard <gavin@gavinhoward.com>2023-02-27 22:06:08 -0700
commit83ac71a77f383b7cfe35e015a94d2a4b0de06afb (patch)
tree6340daefcc34ea5adc820e341584ea45751b0ae6
parent835ee41f77bde62a17d0f265edf425e83309506e (diff)
downloadbc-83ac71a77f383b7cfe35e015a94d2a4b0de06afb.tar.gz
Add an error check in the bcl test
Signed-off-by: Gavin D. Howard <gavin@gavinhoward.com>
-rw-r--r--tests/bcl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/bcl.c b/tests/bcl.c
index cea63f45..ad9ef98f 100644
--- a/tests/bcl.c
+++ b/tests/bcl.c
@@ -127,6 +127,7 @@ main(void)
n3 = bcl_add(n3, n4);
err(bcl_err(n3));
res = bcl_string(bcl_dup(n3));
+ if (res == NULL) err(BCL_ERROR_FATAL_ALLOC_ERR);
if (strcmp(res, "-25452.9108273")) err(BCL_ERROR_FATAL_UNKNOWN_ERR);
// We want to ensure all memory gets freed because we run this under