public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] PR55679: skip invalid tests from r194458 on darwin
@ 2012-12-14  1:21 Jack Howarth
  2012-12-14  7:50 ` Jakub Jelinek
  0 siblings, 1 reply; 2+ messages in thread
From: Jack Howarth @ 2012-12-14  1:21 UTC (permalink / raw)
  To: gcc-patches
  Cc: jakub, dodji, konstantin.s.serebryany, mikestump, iain, glider

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

   The attached patch disables two asan tests introduced in r194458 which are invalid
on darwin. The g++.dg/asan/interception-test-1.C test is invalid on darwin since 
mac function interposition is used instead of interception. The c-c++-common/asan/swapcontext-test-1.c
test is invalid as ucontext support was deprecated in darwin10 and removed completely
in darwin11. Tested on x86_64-apple-darwin10. Okay for gcc trunk?
         Jack

[-- Attachment #2: pr55679.diff --]
[-- Type: text/plain, Size: 1233 bytes --]

gcc/testsuite/

2012-12-13  Jack Howarth <howarth@bromo.med.uc.edu>

	PR 55679/sanitizer
	* g++.dg/asan/interception-test-1.C: Skip on darwin.
	* c-c++-common/asan/swapcontext-test-1.c: Likewise.

Index: gcc/testsuite/g++.dg/asan/interception-test-1.C
===================================================================
--- gcc/testsuite/g++.dg/asan/interception-test-1.C	(revision 194483)
+++ gcc/testsuite/g++.dg/asan/interception-test-1.C	(working copy)
@@ -3,6 +3,7 @@
 // { dg-do run }
 // { dg-options "-fno-builtin-malloc -fno-builtin-free" }
 // { dg-shouldfail "asan" }
+// { dg-skip-if "Darwin uses mac function interposition" { *-*-darwin* } }
 
 #include <stdlib.h>
 #include <stdio.h>
Index: gcc/testsuite/c-c++-common/asan/swapcontext-test-1.c
===================================================================
--- gcc/testsuite/c-c++-common/asan/swapcontext-test-1.c	(revision 194483)
+++ gcc/testsuite/c-c++-common/asan/swapcontext-test-1.c	(working copy)
@@ -1,6 +1,7 @@
 /* Check that ASan plays well with easy cases of makecontext/swapcontext. */
 
 /* { dg-do run { target swapcontext } } */
+// { dg-skip-if "Ucontext support deprecated on darwin" { *-*-darwin* } }
 
 #include <stdio.h>
 #include <ucontext.h>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] PR55679: skip invalid tests from r194458 on darwin
  2012-12-14  1:21 [PATCH] PR55679: skip invalid tests from r194458 on darwin Jack Howarth
@ 2012-12-14  7:50 ` Jakub Jelinek
  0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2012-12-14  7:50 UTC (permalink / raw)
  To: Jack Howarth
  Cc: gcc-patches, dodji, konstantin.s.serebryany, mikestump, iain, glider

On Thu, Dec 13, 2012 at 08:21:49PM -0500, Jack Howarth wrote:
> 2012-12-13  Jack Howarth <howarth@bromo.med.uc.edu>
> 
> 	PR 55679/sanitizer

PR sanitizer/55679 instead

> 	* g++.dg/asan/interception-test-1.C: Skip on darwin.

This I can live with.

> --- gcc/testsuite/c-c++-common/asan/swapcontext-test-1.c	(revision 194483)
> +++ gcc/testsuite/c-c++-common/asan/swapcontext-test-1.c	(working copy)
> @@ -1,6 +1,7 @@
>  /* Check that ASan plays well with easy cases of makecontext/swapcontext. */
>  
>  /* { dg-do run { target swapcontext } } */
> +// { dg-skip-if "Ucontext support deprecated on darwin" { *-*-darwin* } }
>  
>  #include <stdio.h>
>  #include <ucontext.h>

This is wrong.  You should figure out why the effective target swapcontext
succeeded, despite the target not supporting that feature, and possibly replace
it with e.g. compile test or similar.

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-14  7:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-14  1:21 [PATCH] PR55679: skip invalid tests from r194458 on darwin Jack Howarth
2012-12-14  7:50 ` Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).