[tests] New adg_test_invalid_pointer() function
commit4379641774f75cee5562c30b37272e1f87994e13
authorNicola Fontana <ntd@entidi.it>
Sun, 21 Feb 2010 10:04:47 +0000 (21 11:04 +0100)
committerNicola Fontana <ntd@entidi.it>
Sun, 21 Feb 2010 10:04:47 +0000 (21 11:04 +0100)
treec2294c7784f8aa6b556db98f71b589c01efa238d
parentcd32b3f134543e2e8699f4a477673b238ca88685
[tests] New adg_test_invalid_pointer() function

Common code to get an invalid pointer, that is a pointer to some random
memory. Using it in place of handcrafted "junk" array.

It is not advisable to use naive junk pointers such as (void *) 1: this
will likely point to read-only memory, hence breaking the tests because
of this instead of checking the reaction with wrong pointers.
tests/test-edges.c
tests/test-entity.c
tests/test-internal.c
tests/test-internal.h
tests/test-model.c