summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/ChiselSpec.scala
diff options
context:
space:
mode:
authorJack Koenig2020-11-10 19:29:46 -0800
committerGitHub2020-11-11 03:29:46 +0000
commit9f1d6cbb79ac9b9f9e2cad5f294ca5d195aeac14 (patch)
treec39a0e2d89ccf16e6cdaa4ec2277bbb6352db707 /src/test/scala/chiselTests/ChiselSpec.scala
parent1260f7c89f1b95bdb00e56e49edb73dc2eac3a0e (diff)
Ignore tests using System.setSecurityManager (#1661)
The SecurityManager is global so is not thread-safe. This is the source of flaky tests in FIRRTL CI. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'src/test/scala/chiselTests/ChiselSpec.scala')
-rw-r--r--src/test/scala/chiselTests/ChiselSpec.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/scala/chiselTests/ChiselSpec.scala b/src/test/scala/chiselTests/ChiselSpec.scala
index 2f8f978a..843b3192 100644
--- a/src/test/scala/chiselTests/ChiselSpec.scala
+++ b/src/test/scala/chiselTests/ChiselSpec.scala
@@ -281,6 +281,7 @@ trait Utils {
* or doesn't try to write at all.
*/
def catchWrites[T](thunk: => T): Either[String, T] = {
+ throw new Exception("Do not use, not thread-safe")
try {
System.setSecurityManager(new ExceptOnWrite())
Right(thunk)