summaryrefslogtreecommitdiff
path: root/sci-mathematics/gfan/files/gfan-0.8-test-return.patch
blob: 9d2a8c9b306683d6dedbc5e9ff24d7af5cc039ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Nonzero return code if tests fail
Origin: https://git.sagemath.org/sage.git/commit/build/pkgs/gfan/patches/maketestsreturnerror.patch?h=develop&id=4ad830c4cbb10ce81d49eb92cbd3b1be2df31e7b
Forwarded: yes
Last-Update: 2020-11-13

--- a/src/app_test.cpp
+++ b/src/app_test.cpp
@@ -1434,6 +1434,9 @@
 			  failed.push_back(i->folder);
 		  }
 	  cout<<"\n";
+	  cout<<"Number of successful tests "<<good<<endl;
+	  cout<<"Number of failed tests "<<bad<<endl;
+
 	  if(!failed.empty())
 	  {
 		  cout<<"Failed tests:\n-------------\n";
@@ -1441,6 +1444,7 @@
 		  {
 			  cout<<*i<<" FAILED!\n";
 		  }
+		  return 1;
 	  }
 
 	  cout<<"Number of succesful tests "<<good<<endl;