test: Fix compiler warning by casting

Signed-off-by: William Douglas <william.douglas@intel.com>
shared: Remove check for negative values since index is unsigned
test: Add more coverage for BuxtonArray functions

Signed-off-by: William Douglas <william.douglas@intel.com>
shared: Remove backend functions for direct

These functions are no longer needed with the current intended use of
direct.

Signed-off-by: William Douglas <william.douglas@intel.com>
test: Readd tests for Array length checks in serialize

Signed-off-by: William Douglas <william.douglas@intel.com>
test: Fail when array allocation fails

Signed-off-by: William Douglas <william.douglas@intel.com>
test: Fail if array add fails

Signed-off-by: William Douglas <william.douglas@intel.com>
test: Fix check for get with one parameter

Signed-off-by: William Douglas <william.douglas@intel.com>
test: Free list

Signed-off-by: William Douglas <william.douglas@intel.com>
test: Add more checks for BuxtonArray helper failures

Signed-off-by: William Douglas <william.douglas@intel.com>
core: Bail out when buxton_array_new fails
core: Don't leak arrays on notify

Signed-off-by: William Douglas <william.douglas@intel.com>
shared: Add proper handling for buxton_array_add usage failure

When calling buxton_array_add it is best to make a check per add in
order to aid testing (it is best to make one check per if anyway).
This change adds additional testing and splits out testing in the
daemon and protocol.

Signed-off-by: William Douglas <william.douglas@intel.com>
shared: Add newlines to log messages

Signed-off-by: William Douglas <william.douglas@intel.com>
db: Add array error handling to gdbm list_keys

Signed-off-by: William Douglas <william.douglas@intel.com>
db: Free partially created key list on error

Signed-off-by: William Douglas <william.douglas@intel.com>
core: Handle array add failures

This can leak memory but the code to avoid a memory leak is horrible.
Failure on memory allocation in this path is a good candidate for
abort.
Print some hints to configure options.

This will help check whether we're built with any of the
dev options on.