mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Skip sanitizers for limits_test
PiperOrigin-RevId: 565645224 Change-Id: I4441562e368ab8e0b95abbf9e3fbaa792ae59ffd
This commit is contained in:
parent
1475458939
commit
700f8fa547
|
@ -895,7 +895,9 @@ cc_test(
|
|||
name = "limits_test",
|
||||
srcs = ["limits_test.cc"],
|
||||
copts = sapi_platform_copts(),
|
||||
data = ["//sandboxed_api/sandbox2/testcases:limits"],
|
||||
data = [
|
||||
"//sandboxed_api/sandbox2/testcases:limits",
|
||||
],
|
||||
deps = [
|
||||
":limits",
|
||||
":sandbox2",
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include <vector>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "sandboxed_api/config.h"
|
||||
#include "sandboxed_api/sandbox2/executor.h"
|
||||
#include "sandboxed_api/sandbox2/result.h"
|
||||
#include "sandboxed_api/sandbox2/sandbox2.h"
|
||||
|
@ -39,6 +38,7 @@ std::string GetLimitsTestcaseBinPath() {
|
|||
}
|
||||
|
||||
TEST(LimitsTest, RLimitASMmapUnderLimit) {
|
||||
SKIP_SANITIZERS;
|
||||
const std::string path = GetLimitsTestcaseBinPath();
|
||||
std::vector<std::string> args = {path, "1"}; // mmap(1 MiB)
|
||||
auto executor = std::make_unique<sandbox2::Executor>(path, args);
|
||||
|
@ -54,6 +54,7 @@ TEST(LimitsTest, RLimitASMmapUnderLimit) {
|
|||
}
|
||||
|
||||
TEST(LimitsTest, RLimitASMmapAboveLimit) {
|
||||
SKIP_SANITIZERS;
|
||||
const std::string path = GetLimitsTestcaseBinPath();
|
||||
std::vector<std::string> args = {path, "2"}; // mmap(100 MiB)
|
||||
auto executor = std::make_unique<sandbox2::Executor>(path, args);
|
||||
|
@ -69,6 +70,7 @@ TEST(LimitsTest, RLimitASMmapAboveLimit) {
|
|||
}
|
||||
|
||||
TEST(LimitsTest, RLimitASAllocaSmallUnderLimit) {
|
||||
SKIP_SANITIZERS;
|
||||
const std::string path = GetLimitsTestcaseBinPath();
|
||||
std::vector<std::string> args = {path, "3"}; // alloca(1 MiB)
|
||||
auto executor = std::make_unique<sandbox2::Executor>(path, args);
|
||||
|
@ -84,6 +86,7 @@ TEST(LimitsTest, RLimitASAllocaSmallUnderLimit) {
|
|||
}
|
||||
|
||||
TEST(LimitsTest, RLimitASAllocaBigUnderLimit) {
|
||||
SKIP_SANITIZERS;
|
||||
const std::string path = GetLimitsTestcaseBinPath();
|
||||
std::vector<std::string> args = {path, "4"}; // alloca(8 MiB)
|
||||
auto executor = std::make_unique<sandbox2::Executor>(path, args);
|
||||
|
@ -99,6 +102,7 @@ TEST(LimitsTest, RLimitASAllocaBigUnderLimit) {
|
|||
}
|
||||
|
||||
TEST(LimitsTest, RLimitASAllocaBigAboveLimit) {
|
||||
SKIP_SANITIZERS;
|
||||
const std::string path = GetLimitsTestcaseBinPath();
|
||||
std::vector<std::string> args = {path, "5"}; // alloca(100 MiB)
|
||||
auto executor = std::make_unique<sandbox2::Executor>(path, args);
|
||||
|
|
Loading…
Reference in New Issue
Block a user