9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23
24 # @test
25 # @bug 6274276
26 # @summary JLI JAR manifest processing should ignore leading and trailing white space.
27 # @author Daniel D. Daugherty
28 #
29 # @modules java.instrument
30 # @run build ManifestTestApp ExampleForBootClassPath
31 # @run shell/timeout=900 ManifestTest.sh
32 #
33
34 make_a_JAR() {
35 # version_line and premain_line are required
36 version_line="Manifest-Version: 1.0"
37 premain_line="Premain-Class: ${AGENT}"
38 boot_cp_line=""
39 expect_boot_cp_line="ExampleForBootClassPath was not loaded."
40 can_redef_line=""
41 expect_redef_line="isRedefineClassesSupported()=false"
42 can_retrans_line=""
43 expect_retrans_line="isRetransformClassesSupported()=false"
44 can_set_nmp_line=""
45 expect_set_nmp_line="isNativeMethodPrefixSupported()=false"
46 # some tests create directories with spaces in their name,
47 # explicitly delete these.
48 to_be_deleted=""
|
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23
24 # @test
25 # @bug 6274276
26 # @summary JLI JAR manifest processing should ignore leading and trailing white space.
27 # @author Daniel D. Daugherty
28 #
29 # @key intermittent
30 # @modules java.instrument
31 # @run build ManifestTestApp ExampleForBootClassPath
32 # @run shell/timeout=900 ManifestTest.sh
33 #
34
35 make_a_JAR() {
36 # version_line and premain_line are required
37 version_line="Manifest-Version: 1.0"
38 premain_line="Premain-Class: ${AGENT}"
39 boot_cp_line=""
40 expect_boot_cp_line="ExampleForBootClassPath was not loaded."
41 can_redef_line=""
42 expect_redef_line="isRedefineClassesSupported()=false"
43 can_retrans_line=""
44 expect_retrans_line="isRetransformClassesSupported()=false"
45 can_set_nmp_line=""
46 expect_set_nmp_line="isNativeMethodPrefixSupported()=false"
47 # some tests create directories with spaces in their name,
48 # explicitly delete these.
49 to_be_deleted=""
|