summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxim Ostapenko <m.ostapenko@partner.samsung.com>2016-02-25 10:55:52 +0000
committerMaxim Ostapenko <m.ostapenko@partner.samsung.com>2016-02-25 10:55:52 +0000
commit1f4cea0467b793ff9867766de529cb4651d4de02 (patch)
treed1830f1e3c4862432c1f838d539ca5d87640ecd2
parent395fe57374915198fce7ed25c8afbc8140e29574 (diff)
downloadbcm5719-llvm-1f4cea0467b793ff9867766de529cb4651d4de02.tar.gz
bcm5719-llvm-1f4cea0467b793ff9867766de529cb4651d4de02.zip
[asan] Disable recvfrom testcase on Android due to buildbot failure.
Trying to fix following error on Android: FAIL: AddressSanitizer-arm-android :: TestCases/Linux/recvfrom.cc (47 of 350) ... Command Output (stderr): -- /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:22:22: error: variable has incomplete type 'struct sockaddr_in' struct sockaddr_in serveraddr; // server's addr ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:22:10: note: forward declaration of 'sockaddr_in' struct sockaddr_in serveraddr; // server's addr ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:29:38: error: use of undeclared identifier 'INADDR_ANY' serveraddr.sin_addr.s_addr = htonl(INADDR_ANY); ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:30:25: error: use of undeclared identifier 'htons' serveraddr.sin_port = htons(kPortNum); ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:45:22: error: variable has incomplete type 'struct sockaddr_in' struct sockaddr_in serveraddr; // server's addr ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:45:10: note: forward declaration of 'sockaddr_in' struct sockaddr_in serveraddr; // server's addr ^ /mnt/b/sanitizer-buildbot1/sanitizer-x86_64-linux/build/llvm/projects/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc:69:25: error: use of undeclared identifier 'htons' serveraddr.sin_port = htons(kPortNum); llvm-svn: 261855
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/recvfrom.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc b/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc
index 679dc6bd94a..9be1162ba19 100644
--- a/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc
+++ b/compiler-rt/test/asan/TestCases/Linux/recvfrom.cc
@@ -1,9 +1,7 @@
// Test that ASan detects buffer overflow on read from socket via recvfrom.
//
-// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O1 %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan %s -o %t && not %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: android
#include <stdio.h>
#include <unistd.h>
OpenPOWER on IntegriCloud