This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Ada] Adjust testcase to fit the check-ada framework


The testcase checked-in this morning for PR ada/34173 requires
adjustments to fit the current check-ada framework.

The test redefines the s-memory operations to perform checks of its
own instead of just relying on the os free/malloc primitive to
complain if something's wrong. This works only when s-memory.o is
"overriden" by the local object during the final link, which is
typically the case from a regular install tree where the former comes
from libgnat.a, but not in the check-ada context where the runtime
library objects are included individually.

The attached patch comments out the relevant bits and documents how
to exercise the alternate operations.

The regular ones were shown to complain on a couple of popular targets
when the bug was there anyway.

2007-12-07  Olivier Hainque  <hainque@adacore.com>

	testsuite/
	* gnat.dg/unc_memops.ads: Comment out the alloc/free/realloc
	exports and document how these can be exercised.




Attachment: unc_memops.dif
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]