summaryrefslogtreecommitdiff
path: root/tests/main.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-06-15 21:17:26 -0700
committerGitHub <noreply@github.com>2017-06-15 21:17:26 -0700
commit0698810abbe7c5bb7e77f3c40784885026b7f0b8 (patch)
tree2dcd0a27d290a740a41923d3c2a4d040d0a430a1 /tests/main.cpp
parent0fbc043183e4723961d6caa99bf9bb77c5edfb83 (diff)
parent927d321d90a971caae629210e53858f6057903e4 (diff)
Merge pull request #149 from zeux/test-path
Improve code coverage
Diffstat (limited to 'tests/main.cpp')
-rw-r--r--tests/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index 712edda..352b58b 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -41,7 +41,7 @@ static void* custom_allocate(size_t size)
else
{
void* ptr = memory_allocate(size);
- assert(ptr);
+ if (!ptr) return 0;
g_memory_total_size += memory_size(ptr);
g_memory_total_count++;