Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364254 - Reduce console output during JDT/Core junits execution.
Summary: Reduce console output during JDT/Core junits execution.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.8 M6   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-21 00:49 EST by Srikanth Sankaran CLA
Modified: 2012-03-13 09:06 EDT (History)
3 users (show)

See Also:


Attachments
proposed fix (21.58 KB, patch)
2012-02-02 11:28 EST, Ayushman Jain CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Srikanth Sankaran CLA 2011-11-21 00:49:50 EST
bug 362591 comment# 10 has some changes to reduce console output
while running junits for JDT/Core. As it was not directly pertinent
to that bug, I did not release those changes for that bug fix.

These changes need to considered on their own and released.
Comment 1 Srikanth Sankaran CLA 2011-11-21 00:51:12 EST
Ayush, please follow up. Check with Olivier if you need some explanation
on the patch. 

Thanks for the patch Olivier.
Comment 2 Stephan Herrmann CLA 2011-11-21 05:24:08 EST
When I first saw the new resource warnings in the test console
I tried to fix this by adding close calls to the test verifier.
This created mysterious failures on Olivier's windows box.

X-ref: bug 359362 comment 3, partly reverted by
commit eb6a62cd301dd92365462b5f4580a54624129ed5

In my experience it should suffice to alternatively just pass
"-warn:-resource" to the command compiling the test verifier.

I see this in Olivier's patch and just wonder if that's enough.
On my box it had the desired effect, but maybe I'm missing yet more
console output that is addressed by Olivier's additional changes?
Comment 3 Srikanth Sankaran CLA 2011-11-21 17:56:05 EST
(In reply to comment #2)

[...]

> In my experience it should suffice to alternatively just pass
> "-warn:-resource" to the command compiling the test verifier.
> 
> I see this in Olivier's patch and just wonder if that's enough.

These two sentences above seems to be contradicting. To clarify,
did you mean to say "... just wonder if that isn't enough." ?
                                             ^^^^^

> On my box it had the desired effect, but maybe I'm missing yet more
> console output that is addressed by Olivier's additional changes?

I presume, by this you are asking whether the changes over and above
the "-warn:-resource" change have any effect at all. Ayush, please
study this, so we can settle on the minimal change.
Comment 4 Stephan Herrmann CLA 2011-11-22 17:35:36 EST
(In reply to comment #3)
> (In reply to comment #2)
> 
> [...]
> 
> > In my experience it should suffice to alternatively just pass
> > "-warn:-resource" to the command compiling the test verifier.
> > 
> > I see this in Olivier's patch and just wonder if that's enough.
> 
> These two sentences above seems to be contradicting. To clarify,
> did you mean to say "... just wonder if that isn't enough." ?
>                                              ^^^^^

Sorry for imprecise language. I lean towards saying it is enough.

> > On my box it had the desired effect, but maybe I'm missing yet more
> > console output that is addressed by Olivier's additional changes?
> 
> I presume, by this you are asking whether the changes over and above
> the "-warn:-resource" change have any effect at all. Ayush, please
> study this, so we can settle on the minimal change.

Yes, that was exactly my intention.
Comment 5 Srikanth Sankaran CLA 2011-11-22 23:15:22 EST
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #2)

> Sorry for imprecise language. I lean towards saying it is enough.

Actually, upon rereading my own rewording, I felt that it wasn't particularly
unambiguous either. Anyways, we have squeezed out any potential ambiguity and
Ayush should know precisely what is being talked about, so that is good :)
Comment 6 Srikanth Sankaran CLA 2011-11-28 01:09:02 EST
As Ayush is busy reviewing and testing the null annotations work,
retargetting this to M5.
Comment 7 Ayushman Jain CLA 2011-12-19 10:54:59 EST
Note to self: While we're at it, we should also remove the couple of console messages coming from CompletionTestsRequestor2#canUseDiamond()
Comment 8 Srikanth Sankaran CLA 2012-01-17 04:21:53 EST
Postponed to M6.
Comment 9 Ayushman Jain CLA 2012-02-02 11:28:28 EST
Created attachment 210459 [details]
proposed fix

(In reply to comment #2)
> I'm missing yet more
> console output that is addressed by Olivier's additional changes?
The additional changes are not directly related to the fix. Olivier mentioned that the org.eclipse.jdt.core.tests.util.TestVerifier.getVerifyTestsCode() should always contain the code for VerifyTests, and since that was not the case, he updated the string.
The real fix is just adding -warn:-resource.
Comment 10 Ayushman Jain CLA 2012-02-02 11:31:20 EST
Released in master via commit f9060155e3cfd199faeec23a0a107fc22b1b0c9f
Comment 11 Satyam Kandula CLA 2012-03-13 09:06:01 EDT
Verified for 3.8M6 using code inspection