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/bcc6e22c1360
branches:  trunk
changeset: 458927:bcc6e22c1360
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 7b0eee6e7d8e -r bcc6e22c1360 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