void-packages/srcpkgs/gfan/patches/maketestsreturnerror.patch
Gonzalo Tornaría 290d0ac224 New package: gfan-0.6.2
Uses three patches taken from sagemath, cf
https://git.sagemath.org/sage.git/plain/build/pkgs/gfan/patches?h=9.5.beta7

 - fix location of cddlib include files
 - normalize the output of one failing test
 - make tests return an error so build aborts

Also fixes for 32 bit bugs catched by testsuite:
 - add `-ffloat-store` to CFLAGS to fix `0009RenderStairCase`
 - patch typedef for `int64` which causes hang in `0602ResultantFanProjection`
2021-11-22 13:18:02 +01:00

27 lines
631 B
Diff

diff --git a/src/app_test.cpp b/src/app_test.cpp
index 755bfe6..183c735 100644
--- a/src/app_test.cpp
+++ b/src/app_test.cpp
@@ -562,6 +562,9 @@ int testIntegers()
failed.push_back(i->folder);
}
cout<<"\n";
+ cout<<"Number of succesful tests "<<good<<endl;
+ cout<<"Number of failed tests "<<bad<<endl;
+
if(!failed.empty())
{
cout<<"Failed tests:\n-------------\n";
@@ -569,11 +572,9 @@ int testIntegers()
{
cout<<*i<<" FAILED!\n";
}
+ return 1;
}
- cout<<"Number of succesful tests "<<good<<endl;
- cout<<"Number of failed tests "<<bad<<endl;
-
return 0;
}
};