Re: [HACKERS] Hmm, almost-a-Y2K-bug in abstime regression test

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Hmm, almost-a-Y2K-bug in abstime regression test
Date: 2000-01-03 08:38:17
Message-ID: 38705FF9.A3C25187@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> It's not exactly a Y2K bug, because it started to fail at Dec 30 1999
> 23:00:00, your local time. Nonetheless, the abstime regression test
> is now showing a "failure". It's not a code bug --- it's that the test
> includes a query whose results depend on whether current time is before
> or after 12-30-1999. Boo hiss.

Ah, those short-sighted coders back in 1986 didn't even think about
Y2K coming along.

> Probably the best answer is to leave the test script alone and change
> the expected output. Thomas, do you have a different opinion?

Hmm. That's probably the right thing to do, but it just propagates the
poor form of expecting the system clock on a test machine to always be
set to something after the time the regression test was written. I
might reformulate the queries to reduce the dependency on current
time, assuming that we don't lose some of the testing space while
doing it...

- Thomas

--
Thomas Lockhart lockhart(at)alumni(dot)caltech(dot)edu
South Pasadena, California

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ansley, Michael 2000-01-03 12:14:52 RE: [HACKERS] Docs
Previous Message Thomas Lockhart 2000-01-03 08:20:27 Re: [HACKERS] Docs