From 343c8164b9927f5940e6673bdcc3f3c2f2d4d41c Mon Sep 17 00:00:00 2001 From: sla Date: Fri, 24 Feb 2012 20:09:49 +0100 Subject: [PATCH] 7079093: TEST_BUG: java/lang/instrument/ManifestTest.sh fails with cygwin Summary: Work around problems in some cygwin installations Reviewed-by: alanb, sspitsyn --- test/ProblemList.txt | 5 +---- test/java/lang/instrument/ManifestTest.sh | 10 +++++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/test/ProblemList.txt b/test/ProblemList.txt index 2d284667d..9e18b8105 100644 --- a/test/ProblemList.txt +++ b/test/ProblemList.txt @@ -1,6 +1,6 @@ ########################################################################### # -# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2009, 2012, 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 @@ -125,9 +125,6 @@ # 7123972 java/lang/annotation/loaderLeak/Main.java generic-all -# 7079093 -java/lang/instrument/ManifestTest.sh windows-all - # 6944188 java/lang/management/ThreadMXBean/ThreadStateTest.java generic-all diff --git a/test/java/lang/instrument/ManifestTest.sh b/test/java/lang/instrument/ManifestTest.sh index b10e2352d..4fbd51af1 100644 --- a/test/java/lang/instrument/ManifestTest.sh +++ b/test/java/lang/instrument/ManifestTest.sh @@ -1,5 +1,5 @@ # -# Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2008, 2012, 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 @@ -396,7 +396,7 @@ while read token; do touch $FAIL_MARKER fi - MESG=`cat expect_boot_cp_line` + MESG=`cat expect_boot_cp_line | tr -d '\n\r'` grep -s "$MESG" output.log > /dev/null result=$? if [ "$result" = 0 ]; then @@ -406,7 +406,7 @@ while read token; do touch $FAIL_MARKER fi - MESG=`cat expect_redef_line` + MESG=`cat expect_redef_line | tr -d '\n\r'` grep -s "$MESG" output.log > /dev/null result=$? if [ "$result" = 0 ]; then @@ -416,7 +416,7 @@ while read token; do touch $FAIL_MARKER fi - MESG=`cat expect_retrans_line` + MESG=`cat expect_retrans_line | tr -d '\n\r'` grep -s "$MESG" output.log > /dev/null result=$? if [ "$result" = 0 ]; then @@ -426,7 +426,7 @@ while read token; do touch $FAIL_MARKER fi - MESG=`cat expect_set_nmp_line` + MESG=`cat expect_set_nmp_line | tr -d '\n\r'` grep -s "$MESG" output.log > /dev/null result=$? if [ "$result" = 0 ]; then -- GitLab