Changeset View
Changeset View
Standalone View
Standalone View
compiler-rt/trunk/test/asan/TestCases/Linux/allocator_oom_test.cc
Show All 25 Lines | |||||
// RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 \ | // RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t realloc-after-malloc 2>&1 \ | ||||
// RUN: | FileCheck %s --check-prefixes=CHECK-MALLOC-REALLOC,CHECK-CRASH | // RUN: | FileCheck %s --check-prefixes=CHECK-MALLOC-REALLOC,CHECK-CRASH | ||||
// RUN: %env_asan_opts=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 \ | // RUN: %env_asan_opts=allocator_may_return_null=1 %run %t realloc-after-malloc 2>&1 \ | ||||
// RUN: | FileCheck %s --check-prefixes=CHECK-MALLOC-REALLOC,CHECK-NULL | // RUN: | FileCheck %s --check-prefixes=CHECK-MALLOC-REALLOC,CHECK-NULL | ||||
// ASan shadow memory on s390 is too large for this test. | // ASan shadow memory on s390 is too large for this test. | ||||
// AArch64 bots fail on this test. | // AArch64 bots fail on this test. | ||||
// TODO(alekseys): Android lit do not run ulimit on device. | // TODO(alekseys): Android lit do not run ulimit on device. | ||||
// REQUIRES: shadow-scale-3 | |||||
// UNSUPPORTED: s390,android,arm,aarch64 | // UNSUPPORTED: s390,android,arm,aarch64 | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <assert.h> | #include <assert.h> | ||||
int main(int argc, char **argv) { | int main(int argc, char **argv) { | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |