equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
27 import java.util.HashMap; |
27 import java.util.HashMap; |
28 import java.util.List; |
28 import java.util.List; |
29 import java.util.Map; |
29 import java.util.Map; |
30 |
30 |
31 import jdk.test.lib.apps.LingeredApp; |
31 import jdk.test.lib.apps.LingeredApp; |
|
32 import jtreg.SkippedException; |
32 |
33 |
33 /** |
34 /** |
34 * @test |
35 * @test |
35 * @bug 8192823 |
36 * @bug 8192823 |
36 * @summary Test clhsdb source command |
37 * @summary Test clhsdb source command |
72 unExpStrMap.put("source clhsdb_cmd_file", List.of( |
73 unExpStrMap.put("source clhsdb_cmd_file", List.of( |
73 "No such file or directory")); |
74 "No such file or directory")); |
74 |
75 |
75 test.run(theApp.getPid(), cmds, expStrMap, unExpStrMap); |
76 test.run(theApp.getPid(), cmds, expStrMap, unExpStrMap); |
76 Files.delete(file); |
77 Files.delete(file); |
|
78 } catch (SkippedException se) { |
|
79 throw se; |
77 } catch (Exception ex) { |
80 } catch (Exception ex) { |
78 throw new RuntimeException("Test ERROR " + ex, ex); |
81 throw new RuntimeException("Test ERROR " + ex, ex); |
79 } finally { |
82 } finally { |
80 LingeredApp.stopApp(theApp); |
83 LingeredApp.stopApp(theApp); |
81 } |
84 } |