This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262136 - ShellSessionTest.testExecute fails for 21 build
Summary: ShellSessionTest.testExecute fails for 21 build
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-18 11:32 UTC by Vladimir Kvashin
Modified: 2016-07-21 20:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2016-05-18 11:32:34 UTC
Test:
enum****/cnd-test-solaris10.x86/12542/testReport/org.netbeans.modules.nativeexecution.support/ShellSessionTest/testExecute/
failed with exception:

unit.framework.ComparisonFailure: expected:<out[
]> but was:<out[]>
    at junit.framework.Assert.assertEquals(Assert.java:100)
    at junit.framework.Assert.assertEquals(Assert.java:107)
    at junit.framework.TestCase.assertEquals(TestCase.java:269)
    at org.netbeans.modules.nativeexecution.support.ShellSessionTest.testExecute(ShellSessionTest.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at junit.framework.TestCase.runTest(TestCase.java:176)
    at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:102)
    at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:478)
    at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:404)
    at java.lang.Thread.run(Thread.java:745)
Comment 1 Vladimir Kvashin 2016-05-18 16:47:25 UTC
The problem is in ProcessUtils.ExitStatus.merge().
It did not add a trailing '\n'.
Fixed in 
http://hg.netbeans.org/cnd-main/rev/3ba7d0716ee6
Comment 2 Vladimir Kvashin 2016-05-19 10:25:05 UTC
The fix led to a regression in tests.
Comment 3 Vladimir Kvashin 2016-05-19 10:56:43 UTC
I backed out the fix
http://hg.netbeans.org/cnd-main/rev/2bc9125434f9
Working on a proper one...
Comment 4 Vladimir Kvashin 2016-07-21 20:44:40 UTC
This was fixed a while ago.