Apparently, CVS's test suite has more problems than CVS itself.
That is good.  They may be worth fixing anyway.

First, about the advice in file TESTS.

- On this platform, i686-UnixWare7.1.0-sysv5, the vendor's `sort'
  behaves the way sanity.sh expects, while GNU sort (textutils 2.0)
  shows exactly the behaviour you described as a peculiarity of the
  sort program supplied with Solaris: lines starting with tabs sort
  before blank lines.  (Using GNU expr vs the vendor's version makes
  no difference here to the testsuite.)

Making sure GNU sort is NOT used, only the following tests fail:
admin-13, admin-25 and admin-29.  This is because they expect only two
digits for the year in the date line when they get the string `2000'
(without the quotes).  Looks like the y2k problem with the old format
was fixed in CVS itself but not in its testsuite.

I would not believe this problem to be platform specific.  If my fix
below is correct, the unfixed version should fail on any platform,
provided the current date lies in the new century.  

Am I the first person to run the testsuite in this century?  (This bug
is not mentioned in the list of known bugs on your web site.)  Or *do*
I actually have a problem, which the testsuite (correctly) detected?
Possibly a (wrong "fix" to a perceived) y2k problem in the vendor's C
library that produces 4 digits when it should produce 2?  Any feedback
would be greatly appreciated.

Anyway, here the change after which the testsuite succeeds.  Please do
tell me if the unfixed version is better.

Cheers,

- Marco

================================================================
--- src/sanity.sh~      Thu Aug 13 19:15:00 1998
+++ src/sanity.sh       Fri Mar 10 15:00:57 2000
@@ -13817,13 +13817,13 @@
 
 
 1\.1
-date   [0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]; author 
${username};     state Exp;
+date   [0-9][0-9][0-9]*\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9];  
+ author ${username};     state Exp;
 branches
        1\.1\.2\.1;
 next   ;
 
 1\.1\.2\.1
-date   [0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]; author 
${username};     state foo;
+date   [0-9][0-9][0-9]*\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9];  
+ author ${username};     state foo;
 branches;
 next   ;
 
@@ -14222,13 +14222,13 @@
 
 
 1\.1
-date   [0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]; author 
${username};     state Exp;
+date   [0-9][0-9][0-9]*\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9];  
+ author ${username};     state Exp;
 branches
        1\.1\.2\.1;
 next   ;
 
 1\.1\.2\.1
-date   [0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]; author 
${username};     state foo;
+date   [0-9][0-9][0-9]*\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9];  
+ author ${username};     state foo;
 branches;
 next   ;
 
@@ -14393,17 +14393,17 @@
 
 
 1\.4
-date   [0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]; author 
${username};     state Exp;
+date   [0-9][0-9][0-9]*\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9];  
+ author ${username};     state Exp;
 branches;
 next   1\.3;
 
 1\.3
-date   [0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]; author 
${username};     state Exp;
+date   [0-9][0-9][0-9]*\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9];  
+ author ${username};     state Exp;
 branches;
 next   1\.2;
 
 1\.2
-date   [0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]; author 
${username};     state Exp;
+date   [0-9][0-9][0-9]*\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9];  
+ author ${username};     state Exp;
 branches;
 next   ;
 
-----------------------------------------------------------------
This email is confidential and intended solely for the use of the
individual to whom it is addressed.
Any views or opinions presented are solely those of the author
and do not necessarily represent those of Thyron Limited.
If you are not the intended recipient then please be advised
that you have received this email in error and that any use,
dissemination, forwarding, printing or copying of this email 
is strictly prohibited.
If you have received this email in error, please notify the 
Thyron IT Administrator on +44 (0)1923 236 050 or 
send an email to [EMAIL PROTECTED]
Thank You

Reply via email to