diff options
-rwxr-xr-x | test/run_tests.sh | 19 | ||||
-rw-r--r-- | test/yajl_test.c | 6 |
2 files changed, 14 insertions, 11 deletions
diff --git a/test/run_tests.sh b/test/run_tests.sh index d6fd175..55a665b 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -16,14 +16,17 @@ fi # find test binary on both platforms. allow the caller to force a # particular test binary (useful for non-cmake build systems). if [ -z "$testBin" ]; then - testBin="../build/test/Debug/yajl_test.exe" - if [ ! -x $testBin ] ; then - testBin="../build/test/yajl_test" - if [ ! -x $testBin ] ; then - ${ECHO} "cannot execute test binary: '$testBin'" - exit 1; - fi - fi + testBin="../build/test/Release/yajl_test.exe" + if [ ! -x $testBin ] ; then + testBin="../build/test/Debug/yajl_test.exe" + if [ ! -x $testBin ] ; then + testBin="../build/test/yajl_test" + if [ ! -x $testBin ] ; then + ${ECHO} "cannot execute test binary: '$testBin'" + exit 1; + fi + fi + fi fi ${ECHO} "using test binary: $testBin" diff --git a/test/yajl_test.c b/test/yajl_test.c index d669ca4..5c373d0 100644 --- a/test/yajl_test.c +++ b/test/yajl_test.c @@ -26,8 +26,8 @@ /* memory debugging routines */ typedef struct { - size_t numFrees; - size_t numMallocs; + unsigned int numFrees; + unsigned int numMallocs; /* XXX: we really need a hash table here with per-allocation * information */ } yajlTestMemoryContext; @@ -275,7 +275,7 @@ main(int argc, char ** argv) */ fflush(stderr); fflush(stdout); - printf("memory leaks:\t%zu\n", memCtx.numMallocs - memCtx.numFrees); + printf("memory leaks:\t%u\n", memCtx.numMallocs - memCtx.numFrees); return 0; } |