From 3a2595ceb62a0b1c4e75b88abffe9c575ce7b080 Mon Sep 17 00:00:00 2001 From: mvandervoord Date: Wed, 24 Mar 2010 01:06:07 +0000 Subject: [PATCH] - added accessor to line number - tweaked reporting colors git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@66 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e --- auto/colour_reporter.rb | 4 ++-- src/unity.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/auto/colour_reporter.rb b/auto/colour_reporter.rb index c8084a6..77a357e 100644 --- a/auto/colour_reporter.rb +++ b/auto/colour_reporter.rb @@ -16,11 +16,11 @@ def report(message) :green when /^OK$/ :green - when /FAIL/ + when /(?:FAIL|ERROR)/ :red when /IGNORE/ :yellow - when /^(Creating|Compiling|Linking)/ + when /^(?:Creating|Compiling|Linking)/ :white else :blue diff --git a/src/unity.h b/src/unity.h index 5cac69c..9e0d783 100644 --- a/src/unity.h +++ b/src/unity.h @@ -39,6 +39,8 @@ runTest(func); \ UnityConcludeTest(); +#define TEST_LINE_NUM (Unity.CurrentTestLineNumber) + //------------------------------------------------------- // Basic Fail and Ignore //-------------------------------------------------------