mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-06 11:17:50 +00:00
- updating to handle new standard unity output
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@156 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
+1
-1
@@ -254,7 +254,7 @@ module RakefileHelpers
|
||||
tests.each_with_index do |test, index|
|
||||
# compare test's intended pass/fail state with pass/fail state in actual results;
|
||||
# if they don't match, the system test has failed
|
||||
if (test[:pass] != !((test_results =~ /test#{index+1}::: PASS/).nil?))
|
||||
if ((test[:pass] and (test_results =~ /:PASS/).nil?) or (!test[:pass] and (test_results =~ /:FAIL/).nil?))
|
||||
total_failures += 1
|
||||
test_results =~ /test#{index+1}:(.+)/
|
||||
failure_messages << "#{test_file}:test#{index+1}:should #{test[:should]}:#{$1}"
|
||||
|
||||
@@ -28,12 +28,12 @@ int main(void)
|
||||
UnityBegin();
|
||||
|
||||
// RUN_TEST calls runTest
|
||||
RUN_TEST(test_MemNewWillReturnNullIfGivenIllegalSizes);
|
||||
RUN_TEST(test_MemNewWillNowSupportSizesGreaterThanTheDefinesCMockSize);
|
||||
RUN_TEST(test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation);
|
||||
RUN_TEST(test_MemNextWillReturnNullIfGivenABadRoot);
|
||||
RUN_TEST(test_ThatWeCanClaimAndChainAFewElementsTogether);
|
||||
RUN_TEST(test_ThatWeCanAskForAllSortsOfSizes);
|
||||
RUN_TEST(test_MemNewWillReturnNullIfGivenIllegalSizes, 20);
|
||||
RUN_TEST(test_MemNewWillNowSupportSizesGreaterThanTheDefinesCMockSize, 29);
|
||||
RUN_TEST(test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation, 39);
|
||||
RUN_TEST(test_MemNextWillReturnNullIfGivenABadRoot, 53);
|
||||
RUN_TEST(test_ThatWeCanClaimAndChainAFewElementsTogether, 64);
|
||||
RUN_TEST(test_ThatWeCanAskForAllSortsOfSizes, 146);
|
||||
|
||||
UnityEnd();
|
||||
|
||||
|
||||
@@ -29,13 +29,13 @@ int main(void)
|
||||
UnityBegin();
|
||||
|
||||
// RUN_TEST calls runTest
|
||||
RUN_TEST(test_MemNewWillReturnNullIfGivenIllegalSizes);
|
||||
RUN_TEST(test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation);
|
||||
RUN_TEST(test_MemNextWillReturnNullIfGivenABadRoot);
|
||||
RUN_TEST(test_ThatWeCanClaimAndChainAFewElementsTogether);
|
||||
RUN_TEST(test_ThatCMockStopsReturningMoreDataWhenItRunsOutOfMemory);
|
||||
RUN_TEST(test_ThatCMockStopsReturningMoreDataWhenAskForMoreThanItHasLeftEvenIfNotAtExactEnd);
|
||||
RUN_TEST(test_ThatWeCanAskForAllSortsOfSizes);
|
||||
RUN_TEST(test_MemNewWillReturnNullIfGivenIllegalSizes, 15);
|
||||
RUN_TEST(test_MemChainWillReturnNullAndDoNothingIfGivenIllegalInformation, 25);
|
||||
RUN_TEST(test_MemNextWillReturnNullIfGivenABadRoot, 39);
|
||||
RUN_TEST(test_ThatWeCanClaimAndChainAFewElementsTogether, 50);
|
||||
RUN_TEST(test_ThatCMockStopsReturningMoreDataWhenItRunsOutOfMemory, 132);
|
||||
RUN_TEST(test_ThatCMockStopsReturningMoreDataWhenAskForMoreThanItHasLeftEvenIfNotAtExactEnd, 178);
|
||||
RUN_TEST(test_ThatWeCanAskForAllSortsOfSizes, 225);
|
||||
|
||||
UnityEnd();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user