aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorSøren Gjesse <sgjesse@google.com>2017-06-15 12:24:03 +0200
committerSøren Gjesse <sgjesse@google.com>2017-06-15 12:24:03 +0200
commitaf1c5e208527c5e1edc58c78eebcef328d5c90db (patch)
treeef6e6dc6bb561f4dcfd2b3f4eb31eb4996563676 /build.gradle
parent55c2607f0d0f294291d1c6b7dc5c4511ed550b0d (diff)
downloadr8-af1c5e208527c5e1edc58c78eebcef328d5c90db.tar.gz
Add option to run tests without assertions enabled
This makes the tests run faster, and gives faster turnaround when testing issues not related to asserts in the code. R=ricow@google.com Change-Id: Ic91f7e5ff3b21469c6cfc3d8f6cd00de75f3042b
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 967923c14..3d007be55 100644
--- a/build.gradle
+++ b/build.gradle
@@ -685,6 +685,9 @@ tasks.withType(Test) {
forkEvery = 0
// Use the Concurrent Mark Sweep GC (CMS) to keep memory usage at a resonable level.
jvmArgs = ["-XX:+UseConcMarkSweepGC"]
+ if (project.hasProperty('disable_assertions')) {
+ enableAssertions = false
+ }
}
task buildPreNJdwpTestsJar(type: Jar) {