Skip to content

Commit

Permalink
Add a hack to the Catch header to shorten test case output filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Jul 1, 2015
1 parent d8b4ee9 commit cf51eff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/catch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7044,7 +7044,9 @@ namespace Catch {
SourceLineInfo::SourceLineInfo( char const* _file, std::size_t _line )
: file( _file ),
line( _line )
{}
{
file = file.substr(file.find("../") + 2);
}
SourceLineInfo::SourceLineInfo( SourceLineInfo const& other )
: file( other.file ),
line( other.line )
Expand Down

0 comments on commit cf51eff

Please sign in to comment.