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 235864 - nativeexecution RedirectErrorTest testRedirectError_local fail on Win 8.1 under Cygwin
Summary: nativeexecution RedirectErrorTest testRedirectError_local fail on Win 8.1 un...
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: execution (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-12 08:36 UTC by Maksim Khramov
Modified: 2014-11-20 08:31 UTC (History)
1 user (show)

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 Maksim Khramov 2013-09-12 08:36:41 UTC
Product Version: NetBeans IDE 7.3.1 (Build 201306052037)

org.netbeans.modules.nativeexecution.RedirectErrorTest test testRedirectError_local fails...

  <testcase classname="org.netbeans.modules.nativeexecution.RedirectErrorTest:org.netbeans.modules.nativeexecution.RedirectErrorTest" name="testRedirectError_local" time="1.982">
    <failure message="Output is expected to be in the output stream" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: Output is expected to be in the output stream
	at junit.framework.Assert.fail(Assert.java:50)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at org.netbeans.modules.nativeexecution.RedirectErrorTest.doTestRedirectError(RedirectErrorTest.java:139)
	at org.netbeans.modules.nativeexecution.RedirectErrorTest.doTestRedirectError(RedirectErrorTest.java:148)
	at org.netbeans.modules.nativeexecution.RedirectErrorTest.testRedirectError_local(RedirectErrorTest.java:103)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:97)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:431)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:357)
	at java.lang.Thread.run(Thread.java:724)
</failure>
  </testcase>
  <system-out><![CDATA[
RedirectErrorTest @ localhost
	configure builder using setExecutable()
	configure builder not to do redirectError()
	configure builder not to be started in a pseudo-terminal
Extected that error goes to error
Result is: 
ExitStatus exitCode=-1
error=Cannot run program "wrong": CreateProcess error=2, The system cannot find the file specified
output=

RedirectErrorTest @ localhost
	configure builder using setExecutable()
	configure builder to do redirectError()
	configure builder not to be started in a pseudo-terminal
Extected that error goes to output
Result is: 
ExitStatus exitCode=-1
error=
output=Cannot run program "wrong": CreateProcess error=2, The system cannot find the file specified

RedirectErrorTest @ localhost
	configure builder using setExecutable()
	configure builder not to do redirectError()
	configure builder to be started in a pseudo-terminal
Extected that error goes to output
Result is: 
ExitStatus exitCode=127
error=      2 [main] pty 1520 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.  Please report this problem to
the public mailing list cygwin@cygwin.com
output=C:\\Cygwin\\bin\\sh: line 0: exec: wrong: not found
]]></system-out>
  <system-err/>
</testsuite>
Comment 1 Maria Tishkova 2014-11-20 08:31:57 UTC
Hello Maksim!

Can you provide more info| Have you started CND unit tests against native execution and one of the test failed|
Do you have the user scenario?
Please provide more information such as:

Cygwin version.
Do you have the real user scenario where something is broken for you?

Thanks,
Maria