Skip to content
Permalink
Browse files
8240904: Screen flashes on test failures when running tests from make
Reviewed-by: mdoerr
Backport-of: 59563a4
  • Loading branch information
GoeLin committed Dec 15, 2021
1 parent b77a165 commit c8c546bc44bf38f05db7074bd44d2b75f9486455
Showing 4 changed files with 44 additions and 9 deletions.
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 2018, 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
@@ -108,7 +108,16 @@ net.app=netstat
net.sockets.args=-aeeopv
net.statistics.args=-sv

screenshot.app=gnome-screenshot
screenshot.args= -f screen.png
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
################################################################################

@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 2018, 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
@@ -120,5 +120,5 @@ scutil.nwi.args=--nwi
scutil.proxy.args=--proxy

screenshot.app=screencapture
screenshot.args= -x screen1.png screen2.png screen3.png screen4.png screen5.png
screenshot.args=-x screen1.png screen2.png screen3.png screen4.png screen5.png
################################################################################
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 2018, 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
@@ -64,7 +64,8 @@ environment=\
system.dmesg system.prtconf system.sysdef \
process.ps process.top \
memory.swap memory.vmstat.default memory.vmstat.statistics memory.pagesize \
netstat.av netstat.m netstat.s netstat.i
netstat.av netstat.m netstat.s netstat.i \
screenshot
################################################################################
# common unix
################################################################################
@@ -108,4 +109,16 @@ netstat.av.args=-av
netstat.m.args=-m
netstat.s.args=-s
netstat.i.args=-i 1 5

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
################################################################################
@@ -1,5 +1,5 @@
#
# Copyright (c) 2015, 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
@@ -71,7 +71,8 @@ environment=\
memory.free memory.vmstat.default memory.vmstat.statistics \
memory.vmstat.slabinfo memory.vmstat.disk \
files \
net.sockets net.statistics
net.sockets net.statistics \
screenshot
################################################################################
users.current.app=id
users.current.args=-a
@@ -112,4 +113,16 @@ net.sockets.args=-c\0netstat -b -a -t -o || netstat -a -t -o
net.sockets.args.delimiter=\0
net.statistics.app=netstat
net.statistics.args=-s -e

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
################################################################################

1 comment on commit c8c546b

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on c8c546b Dec 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.