summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>