Adam Majer
d34d7cea59
- rstat_test.patch - Fix rstat test on PPC platform - re-enable multi-job support in unit tests (check make target) OBS-URL: https://build.opensuse.org/request/show/505211 OBS-URL: https://build.opensuse.org/package/show/science/gsl?expand=0&rev=10
30 lines
746 B
Diff
30 lines
746 B
Diff
Author: Patrick Alken
|
|
Date: Tue Jun 20 10:27:06 CEST 2017
|
|
|
|
Index: gsl-2.4/rstat/test.c
|
|
===================================================================
|
|
--- gsl-2.4.orig/rstat/test.c
|
|
+++ gsl-2.4/rstat/test.c
|
|
@@ -127,7 +127,7 @@ main()
|
|
{
|
|
const size_t N = 2000000;
|
|
double *data = random_data(N, r);
|
|
- double data2[] = { 4.0, 7.0, 13.0, 16.0 };
|
|
+ double data2[] = { 4.0, 7.0, 13.0, 16.0, -5.0 };
|
|
size_t i;
|
|
|
|
test_basic(2, data, tol1);
|
|
@@ -139,10 +139,10 @@ main()
|
|
test_basic(1500000, data, tol1);
|
|
test_basic(2000000, data, tol1);
|
|
|
|
- for (i = 0; i < 4; ++i)
|
|
+ for (i = 0; i < 5; ++i)
|
|
data2[i] += 1.0e9;
|
|
|
|
- test_basic(4, data2, tol1);
|
|
+ test_basic(5, data2, tol1);
|
|
|
|
free(data);
|
|
}
|