< prev index next >

test/failure_handler/src/share/conf/windows.properties

Print this page
rev 58859 : 8240904: Screen flashes on test failures when running tests from make
Reviewed-by: erikj, serb

@@ -1,7 +1,7 @@
 #
-# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2020, 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
 # under the terms of the GNU General Public License version 2 only, as
 # published by the Free Software Foundation.

@@ -69,11 +69,12 @@
   system.events.system system.events.application system.os \
   process.top process.ps process.tasklist \
   memory.free memory.vmstat.default memory.vmstat.statistics \
         memory.vmstat.slabinfo memory.vmstat.disk \
   files \
-  net.sockets net.statistics net.ipconfig
+  net.sockets net.statistics net.ipconfig \
+  screenshot
 ################################################################################
 users.current.app=id
 users.current.args=-a
 users.logged.app=query
 users.logged.args=user

@@ -112,6 +113,18 @@
 net.sockets.args.delimiter=\0
 net.statistics.app=netstat
 net.statistics.args=-s -e
 net.ipconfig.app=ipconfig
 net.ipconfig.args=/all
+
+screenshot.app=bash
+screenshot.args=-c\0\
+    echo '\
+        var robot = new java.awt.Robot();\
+        var ge = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment();\
+        var bounds = ge.getDefaultScreenDevice().getDefaultConfiguration().getBounds();\
+        var capture = robot.createScreenCapture(bounds);\
+        var file = new java.io.File(""screen.png"");\
+        javax.imageio.ImageIO.write(capture, ""png"", file);\
+    ' | jshell -
+screenshot.args.delimiter=\0
 ################################################################################
< prev index next >