forked from OSchip/llvm-project
[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
This commit is contained in:
parent
395fe57374
commit
1f4cea0467
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue