mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Remove unused member from Totals
At one point it was inserted there as the simplest way to smuggle around an extra return value for specific errors in executing tests. Since then, the error has been changed to be handled differently, and the member became unused.
This commit is contained in:
parent
39d3de17f3
commit
875299cff0
@ -330,7 +330,7 @@ namespace Catch {
|
|||||||
// Note that on unices only the lower 8 bits are usually used, clamping
|
// Note that on unices only the lower 8 bits are usually used, clamping
|
||||||
// the return value to 255 prevents false negative when some multiple
|
// the return value to 255 prevents false negative when some multiple
|
||||||
// of 256 tests has failed
|
// of 256 tests has failed
|
||||||
return (std::min) (MaxExitCode, (std::max) (totals.error, static_cast<int>(totals.assertions.failed)));
|
return (std::min) (MaxExitCode, static_cast<int>(totals.assertions.failed));
|
||||||
}
|
}
|
||||||
#if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
|
#if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
|
||||||
catch( std::exception& ex ) {
|
catch( std::exception& ex ) {
|
||||||
|
@ -33,7 +33,6 @@ namespace Catch {
|
|||||||
|
|
||||||
Totals delta( Totals const& prevTotals ) const;
|
Totals delta( Totals const& prevTotals ) const;
|
||||||
|
|
||||||
int error = 0;
|
|
||||||
Counts assertions;
|
Counts assertions;
|
||||||
Counts testCases;
|
Counts testCases;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user