ovs_assert, tests: Support NDEBUG.
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 29 Oct 2014 18:34:40 +0000 (11:34 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Thu, 30 Oct 2014 16:14:46 +0000 (09:14 -0700)
commit3f636c7e22945652e0e2553894598fa24a5d5f6f
treeaa963c9fbbae71a6801c0c216c56916ba23c16fb
parent5445f508df83f260b2953cc6cd3021c1e22d9aec
ovs_assert, tests: Support NDEBUG.

./configure accepts --enable-ndebug option.  Make ovs_assert() honor
it, and make sure all test programs disable it.

The order of include files in test programs is also made uniform:

1. #include <config.h>
2. #undef NDEBUG
3. Include file of the test subject (to make sure it itself has
   sufficient include directives).
4. System includes in alphapetical order.
5. OVS includes in aplhapetical order.

Suggested-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
33 files changed:
lib/util.h
tests/ovstest.c
tests/test-aes128.c
tests/test-atomic.c
tests/test-bitmap.c
tests/test-bundle.c
tests/test-byte-order.c
tests/test-classifier.c
tests/test-cmap.c
tests/test-csum.c
tests/test-flows.c
tests/test-hash.c
tests/test-heap.c
tests/test-hindex.c
tests/test-hmap.c
tests/test-json.c
tests/test-jsonrpc.c
tests/test-list.c
tests/test-lockfile.c
tests/test-multipath.c
tests/test-netflow.c
tests/test-odp.c
tests/test-packets.c
tests/test-random.c
tests/test-reconnect.c
tests/test-rstp.c
tests/test-sflow.c
tests/test-sha1.c
tests/test-stp.c
tests/test-unix-socket.c
tests/test-util.c
tests/test-uuid.c
tests/test-vconn.c