1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00

Ensure that all test cases call testlib_init so that the testlib assertion handler is installed: this ensures that on windows you can set mps_testlib_noabort to avoid the dialog box from abort().

Copied from Perforce
 Change: 184965
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2014-03-24 11:41:01 +00:00
parent 29b0fa91d2
commit cf0d96dd0b
39 changed files with 128 additions and 137 deletions

View file

@ -1,7 +1,7 @@
/* apss.c: AP MANUAL ALLOC STRESS TEST
*
* $Id$
* Copyright (c) 2001-2013 Ravenbrook Limited. See end of file for license.
* Copyright (c) 2001-2014 Ravenbrook Limited. See end of file for license.
* Portions copyright (C) 2002 Global Graphics Software.
*/
@ -190,8 +190,7 @@ int main(int argc, char *argv[])
bothOptions = MPS_PF_ALIGN == 8 ? &bothOptions8 : &bothOptions16;
randomize(argc, argv);
mps_lib_assert_fail_install(assert_die);
testlib_init(argc, argv);
die(mps_arena_create(&arena, mps_arena_class_vm(), 2*testArenaSIZE),
"mps_arena_create");
@ -226,7 +225,7 @@ int main(int argc, char *argv[])
/* C. COPYRIGHT AND LICENSE
*
* Copyright (c) 2001-2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* Copyright (c) 2001-2014 Ravenbrook Limited <http://www.ravenbrook.com/>.
* All rights reserved. This is an open source license. Contact
* Ravenbrook for commercial licensing options.
*