Switch on *.cc tests for g++ ASan

Message ID 20170808055907.18015-1-v.barinov@samsung.com
State New
Headers show

Commit Message

Slava Barinov Aug. 8, 2017, 5:59 a.m.
* g++.dg/asan/asan.exp: Switch on *.cc tests.

Signed-off-by: Slava Barinov <v.barinov@samsung.com>
---
 gcc/testsuite/ChangeLog            | 4 ++++
 gcc/testsuite/g++.dg/asan/asan.exp | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

Comments

Jeff Law Aug. 9, 2017, 4:27 p.m. | #1
On 08/07/2017 11:59 PM, Slava Barinov wrote:
> 	* g++.dg/asan/asan.exp: Switch on *.cc tests.
> 
> Signed-off-by: Slava Barinov <v.barinov@samsung.com>
> ---
>  gcc/testsuite/ChangeLog            | 4 ++++
>  gcc/testsuite/g++.dg/asan/asan.exp | 2 +-
>  2 files changed, 5 insertions(+), 1 deletion(-)
Thanks.  Installed.

jeff
Richard Biener Aug. 22, 2017, 9:12 a.m. | #2
On Wed, Aug 9, 2017 at 6:27 PM, Jeff Law <law@redhat.com> wrote:
> On 08/07/2017 11:59 PM, Slava Barinov wrote:
>>       * g++.dg/asan/asan.exp: Switch on *.cc tests.
>>
>> Signed-off-by: Slava Barinov <v.barinov@samsung.com>
>> ---
>>  gcc/testsuite/ChangeLog            | 4 ++++
>>  gcc/testsuite/g++.dg/asan/asan.exp | 2 +-
>>  2 files changed, 5 insertions(+), 1 deletion(-)
> Thanks.  Installed.

They all fail, I tried to fix that up but failed.  Thus reverted.

Richard.

> jeff
Jeff Law Aug. 22, 2017, 2:09 p.m. | #3
On 08/22/2017 03:12 AM, Richard Biener wrote:
> On Wed, Aug 9, 2017 at 6:27 PM, Jeff Law <law@redhat.com> wrote:
>> On 08/07/2017 11:59 PM, Slava Barinov wrote:
>>>       * g++.dg/asan/asan.exp: Switch on *.cc tests.
>>>
>>> Signed-off-by: Slava Barinov <v.barinov@samsung.com>
>>> ---
>>>  gcc/testsuite/ChangeLog            | 4 ++++
>>>  gcc/testsuite/g++.dg/asan/asan.exp | 2 +-
>>>  2 files changed, 5 insertions(+), 1 deletion(-)
>> Thanks.  Installed.
> 
> They all fail, I tried to fix that up but failed.  Thus reverted.
Thanks.  It was on my todo list to figure out if any were passing.
Thanks for taking care of it.
jeff

Patch

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c2119f478ba..315af8361df 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@ 
+2017-08-08  Vyacheslav Barinov  <v.barinov@samsung.com>
+
+	* g++.dg/asan/asan.exp: Switch on *.cc tests.
+
 2017-08-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
 	PR target/81593
diff --git a/gcc/testsuite/g++.dg/asan/asan.exp b/gcc/testsuite/g++.dg/asan/asan.exp
index 124c44e9e9a..620071ba7dc 100644
--- a/gcc/testsuite/g++.dg/asan/asan.exp
+++ b/gcc/testsuite/g++.dg/asan/asan.exp
@@ -26,7 +26,7 @@  asan_init
 
 # Main loop.
 if [check_effective_target_fsanitize_address] {
-  gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.C $srcdir/c-c++-common/asan/*.c]] "" ""
+  gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.C $srcdir/$subdir/*.cc $srcdir/c-c++-common/asan/*.c]] "" ""
 }
 
 # All done.