aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-12-21 17:22:35 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-12-21 17:24:20 +0100
commite0795bf0e541f9997f1cba27113d0e97a2b55370 (patch)
tree6e1b2eb7cb6cfbdb39c333628c25dbb7c4f27608 /example
parent4bf9142bb304c1f6a98a4152b321f31aba8a39a3 (diff)
downloadcmocka-e0795bf0e541f9997f1cba27113d0e97a2b55370.tar.gz
cmocka-e0795bf0e541f9997f1cba27113d0e97a2b55370.tar.xz
cmocka-e0795bf0e541f9997f1cba27113d0e97a2b55370.zip
example: Define UNIT_TESTING in run_tests.c.
This makes sure we ue the unit test allocators.
Diffstat (limited to 'example')
-rw-r--r--example/run_tests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/example/run_tests.c b/example/run_tests.c
index 817629b..63fc27b 100644
--- a/example/run_tests.c
+++ b/example/run_tests.c
@@ -13,6 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
+/* Use the unit test allocators */
+#define UNIT_TESTING 1
+
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>