[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH]: uniq: add tests for "--ignore-case"

From: Assaf Gordon
Subject: [PATCH]: uniq: add tests for "--ignore-case"
Date: Tue, 12 Feb 2013 10:44:47 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4


Attached are three small tests for uniq with "--ignore-case" (they pass, the 
option was simply not tested before).

I noticed that by running the default test suite ("make check SUBDIRS=."), the 
majority of uniq tests are skipped:
  uniq: skipping this test -- no appropriate locale
  SKIP: tests/misc/
  PASS: tests/misc/

This is due to tests/misc/ line 83:
 83 # I've only ever triggered the problem in a non-C locale.                   
 84 my $locale = $ENV{LOCALE_FR};                                               
 85 ! defined $locale || $locale eq 'none'                                      
 86   and CuSkip::skip "$prog: skipping this test -- no appropriate locale\n";  

which skips the entire suite if there's no french locale defined, even though 
only one test actually sets the locale.

I can have a patch for it, if that's acceptable.


Attachment: 0001-tests-add-ignore-case-tests-for-uniq.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]