8222519: ButtonDemoScreenshotTest fails randomly with "still state to be reached"
authorvagarwal
Tue, 30 Apr 2019 04:15:31 -0700
changeset 54866 a7a436e080c1
parent 54865 99337f94b04d
child 54867 65297f60ba19
8222519: ButtonDemoScreenshotTest fails randomly with "still state to be reached" Reviewed-by: serb
test/jdk/sanity/client/SwingSet/src/ButtonDemoScreenshotTest.java
--- a/test/jdk/sanity/client/SwingSet/src/ButtonDemoScreenshotTest.java	Mon Apr 29 10:16:58 2019 -0700
+++ b/test/jdk/sanity/client/SwingSet/src/ButtonDemoScreenshotTest.java	Tue Apr 30 04:15:31 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -54,7 +54,7 @@
  *          java.logging
  * @build org.jemmy2ext.JemmyExt
  * @build com.sun.swingset3.demos.button.ButtonDemo
- * @run testng/timeout=600 ButtonDemoScreenshotTest
+ * @run testng/othervm/timeout=600 -Dswing.disablevistaanimation=true ButtonDemoScreenshotTest
  */
 @Listeners(GuiTestListener.class)
 public class ButtonDemoScreenshotTest {