Merge pull request #249 from openAVproductions/remove_auto_file_open

tests: remove auto open file at failure
main
Harry van Haaren 2018-07-14 14:06:38 +01:00 committed by GitHub
commit 0286bff543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -73,12 +73,10 @@ namespace QUnit {
int verboseLevel_;
int errors_;
int tests_;
bool openFileOnFail;
};
inline UnitTest::UnitTest( int verboseLevel, bool openFail )
: verboseLevel_(verboseLevel) , errors_(0) , tests_(0), openFileOnFail(openFail) {
: verboseLevel_(verboseLevel) , errors_(0) , tests_(0) {
}
inline UnitTest::~UnitTest() {
@ -134,13 +132,6 @@ namespace QUnit {
else
{
cout << QUNIT_COLOUR_ERROR << "FAILED";
if ( openFileOnFail )
{
std::stringstream s;
s << "geany" << file << " --line " << line;
system( s.str().c_str() );
}
}
cout << QUNIT_COLOUR_RESET << " : ";
if( compare ) {