From: Bart Van Assche Date: Sat, 18 Sep 2010 08:34:33 +0000 (+0000) Subject: Skip exp-ptrcheck regression tests on PowerPC and ARM. Based on a patch by X-Git-Tag: svn/VALGRIND_3_6_0~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4a0dd3995628026b967108f16c3459762308dac;p=thirdparty%2Fvalgrind.git Skip exp-ptrcheck regression tests on PowerPC and ARM. Based on a patch by Maynard Johnson -- see also #247526. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11360 --- diff --git a/exp-ptrcheck/tests/bad_percentify.vgtest b/exp-ptrcheck/tests/bad_percentify.vgtest index ab3e21d0b5..1f390b02b0 100644 --- a/exp-ptrcheck/tests/bad_percentify.vgtest +++ b/exp-ptrcheck/tests/bad_percentify.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: bad_percentify diff --git a/exp-ptrcheck/tests/base.vgtest b/exp-ptrcheck/tests/base.vgtest index 4359690fd1..7aa99d00b4 100644 --- a/exp-ptrcheck/tests/base.vgtest +++ b/exp-ptrcheck/tests/base.vgtest @@ -1,2 +1,3 @@ +prereq: ./is_arch_supported prog: base stderr_filter: filter_add diff --git a/exp-ptrcheck/tests/ccc.vgtest b/exp-ptrcheck/tests/ccc.vgtest index 7c0c72889a..d6d7ae1605 100644 --- a/exp-ptrcheck/tests/ccc.vgtest +++ b/exp-ptrcheck/tests/ccc.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: ccc diff --git a/exp-ptrcheck/tests/fp.vgtest b/exp-ptrcheck/tests/fp.vgtest index d178745957..bd93cf800b 100644 --- a/exp-ptrcheck/tests/fp.vgtest +++ b/exp-ptrcheck/tests/fp.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: fp diff --git a/exp-ptrcheck/tests/globalerr.vgtest b/exp-ptrcheck/tests/globalerr.vgtest index f75fceef79..c6749cb475 100644 --- a/exp-ptrcheck/tests/globalerr.vgtest +++ b/exp-ptrcheck/tests/globalerr.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: globalerr diff --git a/exp-ptrcheck/tests/hackedbz2.vgtest b/exp-ptrcheck/tests/hackedbz2.vgtest index 41d1772524..ea8f5e8c47 100644 --- a/exp-ptrcheck/tests/hackedbz2.vgtest +++ b/exp-ptrcheck/tests/hackedbz2.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: hackedbz2 diff --git a/exp-ptrcheck/tests/hp_bounds.vgtest b/exp-ptrcheck/tests/hp_bounds.vgtest index f92fc5475d..96a983e5a7 100644 --- a/exp-ptrcheck/tests/hp_bounds.vgtest +++ b/exp-ptrcheck/tests/hp_bounds.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: hp_bounds diff --git a/exp-ptrcheck/tests/hp_dangle.vgtest b/exp-ptrcheck/tests/hp_dangle.vgtest index 82785c9b81..42cbe6c53c 100644 --- a/exp-ptrcheck/tests/hp_dangle.vgtest +++ b/exp-ptrcheck/tests/hp_dangle.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: hp_dangle diff --git a/exp-ptrcheck/tests/hsg.vgtest b/exp-ptrcheck/tests/hsg.vgtest index 663a523db1..b6f653668d 100644 --- a/exp-ptrcheck/tests/hsg.vgtest +++ b/exp-ptrcheck/tests/hsg.vgtest @@ -1,3 +1,4 @@ +prereq: ./is_arch_supported prog: hsg vgopts: --xml=yes --xml-fd=2 --log-file=/dev/null stderr_filter: ../../memcheck/tests/filter_xml diff --git a/exp-ptrcheck/tests/is_arch_supported b/exp-ptrcheck/tests/is_arch_supported new file mode 100755 index 0000000000..ca9bd16d77 --- /dev/null +++ b/exp-ptrcheck/tests/is_arch_supported @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Not all architectures are supported by exp-ptr. Currently, PowerPC and ARM +# are not supported and will fail these tests as follows: +# WARNING: exp-ptrcheck on platforms: stack and global array +# WARNING: checking is not currently supported. Only heap checking is +# WARNING: supported. +# +# So we use this script to prevent these tests from running on unsupported +# architectures. + +case `uname -i` in + ppc*|arm*) exit 1;; + *) exit 0;; +esac diff --git a/exp-ptrcheck/tests/justify.vgtest b/exp-ptrcheck/tests/justify.vgtest index aef13f6587..3052c7e654 100644 --- a/exp-ptrcheck/tests/justify.vgtest +++ b/exp-ptrcheck/tests/justify.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: justify diff --git a/exp-ptrcheck/tests/partial_bad.vgtest b/exp-ptrcheck/tests/partial_bad.vgtest index 86e13e8e8c..094946b6f9 100644 --- a/exp-ptrcheck/tests/partial_bad.vgtest +++ b/exp-ptrcheck/tests/partial_bad.vgtest @@ -1,2 +1,3 @@ +prereq: ./is_arch_supported prog: partial vgopts: --partial-loads-ok=no diff --git a/exp-ptrcheck/tests/partial_good.vgtest b/exp-ptrcheck/tests/partial_good.vgtest index 29fd892be4..ea7d285528 100644 --- a/exp-ptrcheck/tests/partial_good.vgtest +++ b/exp-ptrcheck/tests/partial_good.vgtest @@ -1,2 +1,3 @@ +prereq: ./is_arch_supported prog: partial vgopts: --partial-loads-ok=yes diff --git a/exp-ptrcheck/tests/preen_invars.vgtest b/exp-ptrcheck/tests/preen_invars.vgtest index c654c181dc..49da4bb97e 100644 --- a/exp-ptrcheck/tests/preen_invars.vgtest +++ b/exp-ptrcheck/tests/preen_invars.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: preen_invars diff --git a/exp-ptrcheck/tests/pth_create.vgtest b/exp-ptrcheck/tests/pth_create.vgtest index c98abc6961..91fa9b131f 100644 --- a/exp-ptrcheck/tests/pth_create.vgtest +++ b/exp-ptrcheck/tests/pth_create.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: pth_create diff --git a/exp-ptrcheck/tests/pth_specific.vgtest b/exp-ptrcheck/tests/pth_specific.vgtest index f2a2a34afd..5e6789b61b 100644 --- a/exp-ptrcheck/tests/pth_specific.vgtest +++ b/exp-ptrcheck/tests/pth_specific.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: pth_specific diff --git a/exp-ptrcheck/tests/realloc.vgtest b/exp-ptrcheck/tests/realloc.vgtest index 0b9a00c76d..1cc74ede74 100644 --- a/exp-ptrcheck/tests/realloc.vgtest +++ b/exp-ptrcheck/tests/realloc.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: realloc diff --git a/exp-ptrcheck/tests/stackerr.vgtest b/exp-ptrcheck/tests/stackerr.vgtest index b81660b225..0a1139dfa1 100644 --- a/exp-ptrcheck/tests/stackerr.vgtest +++ b/exp-ptrcheck/tests/stackerr.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: stackerr diff --git a/exp-ptrcheck/tests/strcpy.vgtest b/exp-ptrcheck/tests/strcpy.vgtest index 809bbf6caf..d686e9f328 100644 --- a/exp-ptrcheck/tests/strcpy.vgtest +++ b/exp-ptrcheck/tests/strcpy.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: strcpy diff --git a/exp-ptrcheck/tests/supp.vgtest b/exp-ptrcheck/tests/supp.vgtest index c0d71e7f90..b991f5721c 100644 --- a/exp-ptrcheck/tests/supp.vgtest +++ b/exp-ptrcheck/tests/supp.vgtest @@ -1,2 +1,3 @@ +prereq: ./is_arch_supported vgopts: --suppressions=supp.supp prog: supp diff --git a/exp-ptrcheck/tests/tricky.vgtest b/exp-ptrcheck/tests/tricky.vgtest index 3f22f2bd28..8ebfc09f3e 100644 --- a/exp-ptrcheck/tests/tricky.vgtest +++ b/exp-ptrcheck/tests/tricky.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: tricky diff --git a/exp-ptrcheck/tests/unaligned.vgtest b/exp-ptrcheck/tests/unaligned.vgtest index e5076d2b57..240dc60a4c 100644 --- a/exp-ptrcheck/tests/unaligned.vgtest +++ b/exp-ptrcheck/tests/unaligned.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: unaligned diff --git a/exp-ptrcheck/tests/zero.vgtest b/exp-ptrcheck/tests/zero.vgtest index d5af1b4252..3d6333c47b 100644 --- a/exp-ptrcheck/tests/zero.vgtest +++ b/exp-ptrcheck/tests/zero.vgtest @@ -1 +1,2 @@ +prereq: ./is_arch_supported prog: zero