Skip to content
  • Gábor Szeder's avatar
    t5812: add 'test_i18ngrep's missing filename parameter · a4ca4553
    Gábor Szeder authored and Junio C Hamano's avatar Junio C Hamano committed
    The second 'test_i18ngrep' invocation in the test 'curl redirects
    respect whitelist' is missing its filename parameter.  This has
    remained unnoticed since its introduction in f4113cac
    
     (http: limit
    redirection to protocol-whitelist, 2015-09-22), because it would only
    cause the test to fail if Git was built with a sufficiently old
    libcurl version.  The test's two ||-chained 'test_i18ngrep'
    invocations are supposed to check that either one of the two patterns
    is present in 'git clone's error message.  As it happens, the first
    invocation covers the error message from any reasonably up-to-date
    libcurl, thus the second invocation, the one without the filename
    parameter, isn't executed at all.  Apparently no one has run the test
    suite's httpd tests with such an old libcurl in the last 2+ years, or
    at least they haven't bothered to notify us about the failed test.
    
    Fix this by consolidating the two patterns into a single extended
    regexp, eliminating the need for an ||-chained second 'test_i18ngrep'
    invocation.
    
    Signed-off-by: default avatarSZEDER Gábor <szeder.dev@gmail.com>
    Reviewed-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    a4ca4553