Skip to content
  • Vasco Almeida's avatar
    tests: use test_i18n* functions to suppress false positives · 1edbaac3
    Vasco Almeida authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The test functions test_i18ncmp and test_i18ngrep pretend success if run
    under GETTEXT_POISON. By using those functions to test output which is
    correctly marked as translatable, enables one to detect if the strings
    newly marked for translation are from plumbing output. If they are
    indeed from plumbing, the test would fail, and the string should be
    unmarked, since it is not seen by users.
    
    Thus, it is productive to not have false positives when running the test
    under GETTEXT_POISON. This commit replaces normal test functions by
    their i18n aware variants in use-cases know to be correctly marked for
    translation, suppressing false positives.
    
    Signed-off-by: default avatarVasco Almeida <vascomalmeida@sapo.pt>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    1edbaac3