[Mono-bugs] [Bug 607496] New: System.Net hardwires port 8000 for a listener during testing. Test fails if someone else is alreayd there.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 20 08:47:35 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=607496

http://bugzilla.novell.com/show_bug.cgi?id=607496#c0


           Summary: System.Net hardwires port 8000 for a listener during
                    testing.  Test fails if someone else is alreayd there.
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: verifier
        AssignedTo: rkumpera at novell.com
        ReportedBy: gordon.lack at dsl.pipex.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3

Software should
a) have tests/checks
b) pass them all

HttpWebRequestTest.cs and HttpWebResponseTest.cs in
mcs/class/System/Test/System.Net hardwire port 8000 for their tests.  They
should either negotiate a free one, or allow an environment variabel to set a
suitable one.


Reproducible: Always

Steps to Reproduce:
1. Put a listener on port 8000
2. Build mono and run "make check"
3. Wait for the 7 test failures caused by the port being already in use.


Expected Results:  
The test should succeed.
It should use a free port for the testing.

Similar code seems to be in 2.6.4 (i.e. it still seems to hard-wire port 8000)

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list