This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Test for overflow exceptions in libm-test.inc


On Tuesday, March 20, 2012 02:12:17 Joseph S. Myers wrote:
> I now propose this patch to enable testing for overflow exceptions in
> libm-test.inc.  I went through all the cases involving infinite
> expected results and marked them as expecting overflow when it was an
> overflow case as opposed to an exact infinity.  I then tested on x86
> and x86_64 and used OVERFLOW_EXCEPTION_OK as a workaround (with a
> comment identifying the relevant bug) where there were spurious or
> missing exceptions (only four bugs, three of them new, which is fewer
> than I expected - but note that many functions probably have overflow
> cases that aren't tested).
> 
> This makes it easier to fix overflow exception bugs incrementally -
> you can just add tests to libm-test.inc when fixing them, or adjust an
> existing test to stop using OVERFLOW_EXCEPTION_OK if the bug is one
> for which a test is already present and commented.
> [...]

Thanks, this is ok,

Andreas
-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]