=?koi8-r?Q?Re=3A_[Gc]_[PATCH, _boehm-gc]=3A_Fix_a_couple_of_testcases?=

Ivan Maidanski ivmai at mail.ru
Wed May 12 22:16:28 PDT 2010


Thu, 13 May 2010 00:44:09 +0200 Uros Bizjak <ubizjak at gmail.com>:

> Hello!
> 
> As shown in [1], missing return statement in main function triggers a
> spurious test failure on alphaev68-pc-linux-gnu.
> 
> Attached patch adds missing declarations and return statements where
> applicable.

Partly changed (as these funcs already return 0).
Also moved GC_find_leak initialization from test() (executed in every thread) to main().
And, also, replaced GC_find_leak=1 to GC_set_find_leak(1).

> 
> 2010-05-13  Uros Bizjak  <ubizjak at gmail.com>
> 
> 	* tests/leak_test.c (main): Declare as int.  Return 0.
> 	* tests/thread_leak_test.c (main): Ditto.
> 	* tests/trace_test.c (main): Ditto.
> 
> Tested (only leak test) on alphaev68-pc-linux-gnu.
> 
> Patch was committed to SVN gcc under obvious rule.
> 
> [1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42811#c16
> 
> Uros.



More information about the Gc mailing list