summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2014-11-09 17:49:54 +0100
committerPeter Meerwald <pmeerw@pmeerw.net>2014-11-09 22:14:33 +0100
commit101092465db158c69720d2ff6789d6b31be656bc (patch)
tree4b4c3e335c50295e79eddb62f94f86b787230c27 /src/tests
parent59334021d3c77a4a2c5f79e1fd72870472ddf43c (diff)
core: Replace assert()s with pa_assert()s
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/flist-test.c2
-rw-r--r--src/tests/mcalign-test.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/flist-test.c b/src/tests/flist-test.c
index 69152041e..d8c227ad1 100644
--- a/src/tests/flist-test.c
+++ b/src/tests/flist-test.c
@@ -88,7 +88,7 @@ int main(int argc, char* argv[]) {
for (i = 0; i < THREADS_MAX; i++) {
threads[i] = pa_thread_new("test", thread_func, pa_sprintf_malloc("Thread #%i", i+1));
- assert(threads[i]);
+ pa_assert(threads[i]);
}
pa_msleep(60000);
diff --git a/src/tests/mcalign-test.c b/src/tests/mcalign-test.c
index 443b4a7b6..455e18cdb 100644
--- a/src/tests/mcalign-test.c
+++ b/src/tests/mcalign-test.c
@@ -21,7 +21,6 @@
#include <config.h>
#endif
-#include <assert.h>
#include <unistd.h>
#include <sys/types.h>
#include <errno.h>
@@ -56,7 +55,7 @@ int main(int argc, char *argv[]) {
c.index = c.length = 0;
}
- assert(c.index < pa_memblock_get_length(c.memblock));
+ pa_assert(c.index < pa_memblock_get_length(c.memblock));
l = pa_memblock_get_length(c.memblock) - c.index;