summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2019-10-08 17:06:27 +0000
committerVitaly Buka <vitalybuka@google.com>2019-10-08 17:06:27 +0000
commit6b1ce8376c9177e9e67668d81a46580efab5130e (patch)
treea9b952f25872dcdc6f629ed534599dcca661a750
parent757fcb8a374bbe7c19c3f75ec33053f6c4013918 (diff)
downloadcompiler-rt-6b1ce8376c9177e9e67668d81a46580efab5130e.tar.gz
[sanitizer] Disable crypt*.cpp tests on Android
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@374088 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/sanitizer_common/TestCases/Linux/crypt_r.cpp9
-rw-r--r--test/sanitizer_common/TestCases/Posix/crypt.cpp3
2 files changed, 7 insertions, 5 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/crypt_r.cpp b/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
index b90b13b45..69bfb46aa 100644
--- a/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
+++ b/test/sanitizer_common/TestCases/Linux/crypt_r.cpp
@@ -1,15 +1,14 @@
// RUN: %clangxx -O0 -g %s -lcrypt -o %t && %run %t
+// crypt.h is missing from Android.
+// UNSUPPORTED: android
+
#include <assert.h>
#include <unistd.h>
#include <cstring>
#include <crypt.h>
-#include <sanitizer/msan_interface.h>
-
-int
-main (int argc, char** argv)
-{
+int main(int argc, char **argv) {
{
crypt_data cd;
cd.initialized = 0;
diff --git a/test/sanitizer_common/TestCases/Posix/crypt.cpp b/test/sanitizer_common/TestCases/Posix/crypt.cpp
index 7b36741b6..ff86aced5 100644
--- a/test/sanitizer_common/TestCases/Posix/crypt.cpp
+++ b/test/sanitizer_common/TestCases/Posix/crypt.cpp
@@ -1,5 +1,8 @@
// RUN: %clangxx -O0 -g %s -o %t -lcrypt && %run %t
+// crypt is missing from Android.
+// UNSUPPORTED: android
+
#include <assert.h>
#include <unistd.h>
#include <cstring>