This is an archive of the discontinued LLVM Phabricator instance.

Enable sanitizer_common tests on NetBSD
ClosedPublic

Authored by krytarowski on Jan 18 2018, 2:34 AM.

Details

Summary

NetBSD can handle asan, ubsan, msan, tsan tests
on 64-bit and when applicable 32-bit X86 OS.

Sponsored by <The NetBSD Foundation>

Diff Detail

Repository
rL LLVM

Event Timeline

krytarowski created this revision.Jan 18 2018, 2:34 AM

Include here test/sanitizer_common/TestCases/NetBSD/lit.local.cfg

Merging this is required to unbreak the Android buildbot. I'm going to land it now.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 18 2018, 3:51 AM
This revision was automatically updated to reflect the committed changes.

http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-android/builds/6882/steps/run%20lit%20tests%20%5Bi686%2Ffugu-userdebug%2FN2G48C%5D/logs/stdio

FAIL: SanitizerCommon-asan-i386-Android :: NetBSD/gid_from_group.cc (500 of 775)
******************** TEST 'SanitizerCommon-asan-i386-Android :: NetBSD/gid_from_group.cc' FAILED ********************
Script:
--
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm/projects/compiler-rt/test/sanitizer_common/android_commands/android_compile.py  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm_build64/bin/clang  --driver-mode=g++ -gline-tables-only -fsanitize=address  --target=i686-linux-android --sysroot=/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/standalone-i686/sysroot -B/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/android_ndk/standalone-i686 -pie -fuse-ld=gold -Wl,--enable-new-dtags  -O0 -g /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm/projects/compiler-rt/test/sanitizer_common/TestCases/NetBSD/gid_from_group.cc -o /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_i686/test/sanitizer_common/asan-i386-Android/NetBSD/Output/gid_from_group.cc.tmp &&  /var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/compiler_rt_build_android_i686/test/sanitizer_common/asan-i386-Android/NetBSD/Output/gid_from_group.cc.tmp
--
Exit Code: 1

Command Output (stderr):
--
/var/lib/buildbot/sanitizer-buildbot6/sanitizer-x86_64-linux-android/build/llvm/projects/compiler-rt/test/sanitizer_common/TestCases/NetBSD/gid_from_group.cc:9:7: error: use of undeclared identifier 'gid_from_group'
  if (gid_from_group("nobody", &nobody) == -1)
      ^
1 error generated.

--