Permalink
Browse files

Merge pull request #781 from rurban/leak-test#765

Mark --leak-test to be skipped with AddressSanitizer
  • Loading branch information...
2 parents e4b931d + 7600c8f commit 976c78ad0a510b707725d6f6b820ae4d8026e3e5 Jimmy Zhuo committed Jun 6, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 src/exit.c
  2. +1 −1 t/run/options.t
View
@@ -111,6 +111,7 @@ the interpreter is destroyed.
*/
PARROT_COLD
+PARROT_NO_ADDRESS_SAFETY_ANALYSIS
void
Parrot_x_execute_on_exit_handlers(PARROT_INTERP, int status)
{
@@ -134,6 +135,7 @@ Parrot_x_execute_on_exit_handlers(PARROT_INTERP, int status)
node = next;
}
+ /* It could be that the interpreter already is destroyed. See issue 765 */
interp->exit_handler_list = NULL;
/* Re-enable GC, which we will want if GC finalizes */
View
@@ -116,7 +116,7 @@ like( $output, qr/maximum GC nursery size is 50%/,
is( $exit, 0, '... and should not crash' );
-# Test --leak-test
+# Test --leak-test. See issue GH #765
is( qx{$PARROT --leak-test "$first_pir_file"}, "first\n", '--leak-test' );
# clean up temporary files

0 comments on commit 976c78a

Please sign in to comment.