Skip to content

"Test requires default test server host and port" for any test run #5761

Closed

Description

@MarcelRaad

I did this

Look at any CI build. Alternatively, run the tests with runtests.pl.

I expected the following

Not to see this line in every single test suite run:

TESTINFO: "Test requires default test server host and port" 12 times (842, 843, 844, 845, 887, 888, 889, 890, 946 and 3 more)

Could it be that these tests cannot be run at all anymore since 80d6515?

Also, there are a lot of warnings

Use of uninitialized value $HTTPSPORT in substitution (s///) at /tests/runtests.pl line 3271."

as visible e.g. in https://curl.haxx.se/dev/log.cgi?id=20200801191819-7235#prob12, which seems to be caused by the same commit.

curl/libcurl version

7.72.0-DEV

operating system

Linux, macOS, Windows, FreeBSD, Solaris

Activity

  1. bagder commented on Aug 1, 2020

    @bagder
    Member

    Correct, tests that require "default host and port" can no longer run (unless by a fluke the random port happens to land on the single port the test can run on). They need to be adjusted to work on "any" port number.

  2. jay commented on Aug 2, 2020

    @jay
    Member
    === Start of file http_server.log
    21:03:54.633676 exit_signal_handler: 15
    21:03:54.638788 signalled to die
    21:03:54.639411 ========> IPv4 sws (port 55745 pid: 13877) exits with signal (15)
    === End of file http_server.log
    === Start of file https_stunnel.log
    [ ] Clients allowed=125
    [.] stunnel 5.50 on sparc-sun-solaris2.10 platform
    [.] Compiled with OpenSSL 1.0.2o 27 Mar 2018
    [.] Running with OpenSSL 1.0.2u 20 Dec 2019
    [.] Threading:PTHREAD Sockets:POLL,IPv6 TLS:ENGINE,FIPS,OCSP,PSK,SNI Auth:LIBWRAP
    [ ] errno: (*(___errno()))
    [!] Invalid configuration file name "/build-17545/tests/https_stunnel.conf"
    [!] realpath: Invalid argument (22)
    [ ] Deallocating section defaults
    === End of file https_stunnel.log
    
  3. bagder commented on Aug 2, 2020

    @bagder
    Member

    @jay surely that's a separate problem?

  4. added a commit that references this issue on Aug 4, 2020
    008cd31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions