< prev index next >

test/jdk/jdk/jfr/tool/TestPrint.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2016, 2018, 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. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2016, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 46,56 **** OutputAnalyzer output = ExecuteHelper.jfr("print"); output.shouldContain("missing file"); output = ExecuteHelper.jfr("print", "missing.jfr"); ! output.shouldContain("could not find file "); Path file = Utils.createTempFile("faked-print-file", ".jfr"); FileWriter fw = new FileWriter(file.toFile()); fw.write('d'); fw.close(); --- 46,56 ---- OutputAnalyzer output = ExecuteHelper.jfr("print"); output.shouldContain("missing file"); output = ExecuteHelper.jfr("print", "missing.jfr"); ! output.shouldContain("could not open file "); Path file = Utils.createTempFile("faked-print-file", ".jfr"); FileWriter fw = new FileWriter(file.toFile()); fw.write('d'); fw.close();
< prev index next >