Skip to content

Commit

Permalink
jvm compilation failure flag for tests (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
datYori authored Jan 11, 2024
1 parent 97a2307 commit 922fdb9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion snapi-client/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ Test / javaOptions ++= Seq(
// Limit overall memory and force crashing hard and early.
// Useful for debugging memleaks.
"-Xmx8G",
"-XX:+CrashOnOutOfMemoryError"
"-XX:+CrashOnOutOfMemoryError",
"-Dpolyglotimpl.CompilationFailureAction=Throw"
)

// Add dependency resolvers
Expand Down
3 changes: 2 additions & 1 deletion snapi-frontend/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ Test / javaOptions ++= Seq(
// Limit overall memory and force crashing hard and early.
// Useful for debugging memleaks.
"-Xmx8G",
"-XX:+CrashOnOutOfMemoryError"
"-XX:+CrashOnOutOfMemoryError",
"-Dpolyglotimpl.CompilationFailureAction=Throw"
)

// Add dependency resolvers
Expand Down
3 changes: 2 additions & 1 deletion snapi-truffle/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ Test / javaOptions ++= Seq(
// Limit overall memory and force crashing hard and early.
// Useful for debugging memleaks.
"-Xmx8G",
"-XX:+CrashOnOutOfMemoryError"
"-XX:+CrashOnOutOfMemoryError",
"-Dpolyglotimpl.CompilationFailureAction=Throw"
)

// Add dependency resolvers
Expand Down
3 changes: 2 additions & 1 deletion sql-client/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ Test / javaOptions ++= Seq(
// Limit overall memory and force crashing hard and early.
// Useful for debugging memleaks.
"-Xmx8G",
"-XX:+CrashOnOutOfMemoryError"
"-XX:+CrashOnOutOfMemoryError",
"-Dpolyglotimpl.CompilationFailureAction=Throw"
)

// Add dependency resolvers
Expand Down

0 comments on commit 922fdb9

Please sign in to comment.