From 71fad8e28b2a766f266785a13e2647ded2523e0b Mon Sep 17 00:00:00 2001 From: gtriantafill Date: Thu, 6 Feb 2014 13:27:50 -0500 Subject: [PATCH] 8021774: [TESTBUG] Tests failed because of a warning in its output Summary: Remove check for warning Reviewed-by: ctornqvi, hseigel, coleenp --- test/runtime/NMT/CommandLineDetail.java | 5 ++--- test/runtime/NMT/CommandLineSummary.java | 5 ++--- test/runtime/NMT/CommandLineTurnOffNMT.java | 5 ++--- test/runtime/NMT/PrintNMTStatistics.java | 3 +-- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/test/runtime/NMT/CommandLineDetail.java b/test/runtime/NMT/CommandLineDetail.java index d993316ba..0151b48a6 100644 --- a/test/runtime/NMT/CommandLineDetail.java +++ b/test/runtime/NMT/CommandLineDetail.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2014, 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 @@ -24,7 +24,7 @@ /* * @test * @key nmt - * @summary Running with NMT detail should not result in an error or warning + * @summary Running with NMT detail should not result in an error * @library /testlibrary */ @@ -39,7 +39,6 @@ public class CommandLineDetail { "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldNotContain("error"); - output.shouldNotContain("warning"); output.shouldHaveExitValue(0); } } diff --git a/test/runtime/NMT/CommandLineSummary.java b/test/runtime/NMT/CommandLineSummary.java index b8415d1bd..9680c345b 100644 --- a/test/runtime/NMT/CommandLineSummary.java +++ b/test/runtime/NMT/CommandLineSummary.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2014, 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 @@ -24,7 +24,7 @@ /* * @test * @key nmt - * @summary Running with NMT summary should not result in an error or warning + * @summary Running with NMT summary should not result in an error * @library /testlibrary */ @@ -39,7 +39,6 @@ public class CommandLineSummary { "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldNotContain("error"); - output.shouldNotContain("warning"); output.shouldHaveExitValue(0); } } diff --git a/test/runtime/NMT/CommandLineTurnOffNMT.java b/test/runtime/NMT/CommandLineTurnOffNMT.java index e8d950cba..7b8f8beba 100644 --- a/test/runtime/NMT/CommandLineTurnOffNMT.java +++ b/test/runtime/NMT/CommandLineTurnOffNMT.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2014, 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 @@ -24,7 +24,7 @@ /* * @test * @key nmt - * @summary Turning off NMT should not result in an error or warning + * @summary Turning off NMT should not result in an error * @library /testlibrary */ @@ -38,7 +38,6 @@ public class CommandLineTurnOffNMT { "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldNotContain("error"); - output.shouldNotContain("warning"); output.shouldHaveExitValue(0); } } diff --git a/test/runtime/NMT/PrintNMTStatistics.java b/test/runtime/NMT/PrintNMTStatistics.java index 96bc2f326..fc039d6b2 100644 --- a/test/runtime/NMT/PrintNMTStatistics.java +++ b/test/runtime/NMT/PrintNMTStatistics.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2014 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,6 @@ public class PrintNMTStatistics { OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("Java Heap (reserved="); output.shouldNotContain("error"); - output.shouldNotContain("warning"); output.shouldHaveExitValue(0); } } -- GitLab