gsl/gsl-test.patch
Petr Šabata 74f1de1204 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/gsl#1f630362ebb3091ca50d579c5a325f31abf0fabd
2020-10-15 12:04:09 +02:00

16 lines
540 B
Diff

diff -up gsl-2.1/rstat/test.c.than gsl-2.1/rstat/test.c
diff -up gsl-2.1/test/results.c.than gsl-2.1/test/results.c
--- gsl-2.1/test/results.c.than 2016-03-10 18:08:17.013928401 -0500
+++ gsl-2.1/test/results.c 2016-03-10 18:42:45.717980023 -0500
@@ -131,6 +131,10 @@ gsl_test_rel (double result, double expe
{
status = -1;
}
+ else if (fabs(result-expected) < relative_error)
+ {
+ status = 0;
+ }
else if (expected != 0 )
{
status = (fabs(result-expected)/fabs(expected) > relative_error) ;