public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/rename-testsuite-files)] asan, testsuite: remove 2 unused files Date: Fri, 14 Jan 2022 14:42:15 +0000 (GMT) [thread overview] Message-ID: <20220114144215.A41D03836015@sourceware.org> (raw) https://gcc.gnu.org/g:870595fd5d60b26988d65395f46a9e9fe190918f commit 870595fd5d60b26988d65395f46a9e9fe190918f Author: Martin Liska <mliska@suse.cz> Date: Fri Jan 14 15:37:40 2022 +0100 asan, testsuite: remove 2 unused files and rename foo.cc files to foo-aux.cc. Diff: --- ...an_globals_test.cc => asan_globals_test-aux.cc} | 0 .../g++.dg/asan/asan_globals_test-wrapper-aux.cc | 2 ++ .../g++.dg/asan/asan_globals_test-wrapper.cc | 2 -- .../{asan_mem_test.cc => asan_mem_test-aux.cc} | 0 .../{asan_oob_test.cc => asan_oob_test-aux.cc} | 0 .../{asan_str_test.cc => asan_str_test-aux.cc} | 0 .../g++.dg/asan/{asan_test.cc => asan_test-aux.cc} | 0 gcc/testsuite/g++.dg/asan/asan_test.C | 10 +++---- gcc/testsuite/g++.dg/asan/dlclose-test-1-so.cc | 32 ---------------------- gcc/testsuite/g++.dg/asan/shared-lib-test-1-so.cc | 20 -------------- 10 files changed, 7 insertions(+), 59 deletions(-) diff --git a/gcc/testsuite/g++.dg/asan/asan_globals_test.cc b/gcc/testsuite/g++.dg/asan/asan_globals_test-aux.cc similarity index 100% rename from gcc/testsuite/g++.dg/asan/asan_globals_test.cc rename to gcc/testsuite/g++.dg/asan/asan_globals_test-aux.cc diff --git a/gcc/testsuite/g++.dg/asan/asan_globals_test-wrapper-aux.cc b/gcc/testsuite/g++.dg/asan/asan_globals_test-wrapper-aux.cc new file mode 100644 index 00000000000..997a410cbd3 --- /dev/null +++ b/gcc/testsuite/g++.dg/asan/asan_globals_test-wrapper-aux.cc @@ -0,0 +1,2 @@ +#define DEJAGNU_GTEST_H 1 +#include "asan_globals_test-aux.cc" diff --git a/gcc/testsuite/g++.dg/asan/asan_globals_test-wrapper.cc b/gcc/testsuite/g++.dg/asan/asan_globals_test-wrapper.cc deleted file mode 100644 index 97f53123f99..00000000000 --- a/gcc/testsuite/g++.dg/asan/asan_globals_test-wrapper.cc +++ /dev/null @@ -1,2 +0,0 @@ -#define DEJAGNU_GTEST_H 1 -#include "asan_globals_test.cc" diff --git a/gcc/testsuite/g++.dg/asan/asan_mem_test.cc b/gcc/testsuite/g++.dg/asan/asan_mem_test-aux.cc similarity index 100% rename from gcc/testsuite/g++.dg/asan/asan_mem_test.cc rename to gcc/testsuite/g++.dg/asan/asan_mem_test-aux.cc diff --git a/gcc/testsuite/g++.dg/asan/asan_oob_test.cc b/gcc/testsuite/g++.dg/asan/asan_oob_test-aux.cc similarity index 100% rename from gcc/testsuite/g++.dg/asan/asan_oob_test.cc rename to gcc/testsuite/g++.dg/asan/asan_oob_test-aux.cc diff --git a/gcc/testsuite/g++.dg/asan/asan_str_test.cc b/gcc/testsuite/g++.dg/asan/asan_str_test-aux.cc similarity index 100% rename from gcc/testsuite/g++.dg/asan/asan_str_test.cc rename to gcc/testsuite/g++.dg/asan/asan_str_test-aux.cc diff --git a/gcc/testsuite/g++.dg/asan/asan_test.cc b/gcc/testsuite/g++.dg/asan/asan_test-aux.cc similarity index 100% rename from gcc/testsuite/g++.dg/asan/asan_test.cc rename to gcc/testsuite/g++.dg/asan/asan_test-aux.cc diff --git a/gcc/testsuite/g++.dg/asan/asan_test.C b/gcc/testsuite/g++.dg/asan/asan_test.C index 15c338b8c16..becbdd58aaf 100644 --- a/gcc/testsuite/g++.dg/asan/asan_test.C +++ b/gcc/testsuite/g++.dg/asan/asan_test.C @@ -1,7 +1,7 @@ // { dg-do run { target { { *-*-linux* i?86-*-freebsd* x86_64-*-freebsd* } && { { ! { i?86-*-linux* x86_64-*-linux* i?86-*-freebsd* x86_64-*-freebsd* } } || sse2_runtime } } } } // { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } // { dg-skip-if "" { *-*-* } { "-flto" } { "" } } -// { dg-additional-sources "asan_globals_test-wrapper.cc" } +// { dg-additional-sources "asan_globals_test-wrapper-aux.cc" } // { dg-options "-std=c++11 -fsanitize=address -fno-builtin -Wall -Werror -Wno-alloc-size-larger-than -Wno-array-bounds -Wno-stringop-overflow -Wno-stringop-overread -g -DASAN_UAR=0 -DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_BLACKLIST=0 -DSANITIZER_USE_DEJAGNU_GTEST=1 -lasan -lpthread" } // { dg-additional-options "-ldl" { target { ! *-*-freebsd* } } } // { dg-additional-options "-DASAN_NEEDS_SEGV=1" { target { ! arm*-*-* } } } @@ -12,7 +12,7 @@ // { dg-set-target-env-var ASAN_OPTIONS "handle_segv=2" } // { dg-final { asan-gtest } } -#include "asan_test.cc" -#include "asan_mem_test.cc" -#include "asan_str_test.cc" -#include "asan_oob_test.cc" +#include "asan_test-aux.cc" +#include "asan_mem_test-aux.cc" +#include "asan_str_test-aux.cc" +#include "asan_oob_test-aux.cc" diff --git a/gcc/testsuite/g++.dg/asan/dlclose-test-1-so.cc b/gcc/testsuite/g++.dg/asan/dlclose-test-1-so.cc deleted file mode 100644 index 99f00e23007..00000000000 --- a/gcc/testsuite/g++.dg/asan/dlclose-test-1-so.cc +++ /dev/null @@ -1,32 +0,0 @@ -//===----------- dlclose-test-so.cc -----------------------------*- C++ -*-===// -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file is a part of AddressSanitizer, an address sanity checker. -// -// Regression test for -// http://code.google.com/p/address-sanitizer/issues/detail?id=19 -//===----------------------------------------------------------------------===// - -#include <stdio.h> - -static int pad1; -static int static_var; -static int pad2; - -extern "C" -int *get_address_of_static_var() { - return &static_var; -} - -__attribute__((constructor)) -void at_dlopen() { - printf("%s: I am being dlopened\n", __FILE__); -} -__attribute__((destructor)) -void at_dlclose() { - printf("%s: I am being dlclosed\n", __FILE__); -} diff --git a/gcc/testsuite/g++.dg/asan/shared-lib-test-1-so.cc b/gcc/testsuite/g++.dg/asan/shared-lib-test-1-so.cc deleted file mode 100644 index 7548bc02a50..00000000000 --- a/gcc/testsuite/g++.dg/asan/shared-lib-test-1-so.cc +++ /dev/null @@ -1,20 +0,0 @@ -//===----------- shared-lib-test-so.cc --------------------------*- C++ -*-===// -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file is a part of AddressSanitizer, an address sanity checker. -// -//===----------------------------------------------------------------------===// - -#include <stdio.h> - -int pad[10]; -int GLOB[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; - -extern "C" -void inc(int index) { - GLOB[index]++; -}
next reply other threads:[~2022-01-14 14:42 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-14 14:42 Martin Liska [this message] 2022-01-17 11:11 Martin Liska 2022-01-17 11:14 Martin Liska
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220114144215.A41D03836015@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).