path: root/tests/
diff options
authorVadim Yanitskiy <>2017-09-12 15:32:52 +0300
committerVadim Yanitskiy <>2017-12-31 12:21:00 +0100
commit1fe6a9b9ed92da4845f8c8cef10372a3e711a8ca (patch)
tree4ff6dc395c5529efbe198ee0de7da475a4a3e83f /tests/
parentf069eb37fe48df4e6897d0614e008b676e06db8e (diff)
tests: add procqueue test
This test is intended to validate the processing queue management API. Moreover, the talloc debugging API is used to ensure that there are no memory leaks. First, four processing queues are being allocated. One of them is empty, while others have different count of items. Then the human-readable description is being generated for all of them. And finally, the processing and exit cllback are being tested. During the test execution, the talloc NULL-context tracking feature is enabled, allowing to observe every memory allocation within the libosmogapk, and to detect memory leaks.
Diffstat (limited to 'tests/')
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ b/tests/
index 09a77c3..ea8498c 100644
--- a/tests/
+++ b/tests/
@@ -1,2 +1,8 @@
AT_BANNER([Regression tests.])
+cat $abs_srcdir/procqueue/pq_test.ok > expout
+AT_CHECK([$abs_top_builddir/tests/procqueue/pq_test], [0], [expout])