Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/rump/modautoload Avoid symbol clashes in test/rump/mod...



details:   https://anonhg.NetBSD.org/src/rev/e9480c2e3ba6
branches:  trunk
changeset: 453543:e9480c2e3ba6
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sat Aug 17 04:04:28 2019 +0000

description:
Avoid symbol clashes in test/rump/modautoload/t_modautoload with sanitizers

Set SANITIZER_RENAME_SYMBOL.t_modautoload to:

 * sysctlbyname
 * sysctlgetmibinfo

diffstat:

 tests/rump/modautoload/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 242dbedb0480 -r e9480c2e3ba6 tests/rump/modautoload/Makefile
--- a/tests/rump/modautoload/Makefile   Sat Aug 17 00:14:48 2019 +0000
+++ b/tests/rump/modautoload/Makefile   Sat Aug 17 04:04:28 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2016/10/14 16:02:35 christos Exp $
+#      $NetBSD: Makefile,v 1.9 2019/08/17 04:04:28 kamil Exp $
 #
 
 .include <bsd.init.mk>
@@ -29,4 +29,9 @@
 SRCS.t_modautoload+=           sysctlgetmibinfo.c
 CPPFLAGS+=     -DRUMP_ACTION
 
+SANITIZER_RENAME_CLASSES+=             t_modautoload
+SANITIZER_RENAME_FILES.t_modautoload+= ${SRCS.t_modautoload}
+SANITIZER_RENAME_SYMBOL.t_modautoload+=        sysctlbyname
+SANITIZER_RENAME_SYMBOL.t_modautoload+=        sysctlgetmibinfo
+
 .include <bsd.test.mk>



Home | Main Index | Thread Index | Old Index