diff --git a/auto/generate_test_runner.rb b/auto/generate_test_runner.rb index f81ee65..c486661 100644 --- a/auto/generate_test_runner.rb +++ b/auto/generate_test_runner.rb @@ -104,7 +104,7 @@ class UnityTestRunnerGenerator def find_mocks(includes) mock_headers = [] includes.each do |include_file| - mock_headers << include_file if (include_file =~ /^mock/i) + mock_headers << File.basename(include_file) if (include_file =~ /^mock/i) end return mock_headers end diff --git a/src/unity.c b/src/unity.c index 0efaf27..66860ed 100644 --- a/src/unity.c +++ b/src/unity.c @@ -109,7 +109,7 @@ void UnityPrintNumberHex(const unsigned long number, const char nibbles_to_print void UnityPrintMask(const unsigned long mask, const unsigned long number) { - unsigned long bit = 0x00000001; + unsigned long bit = 0x80000000; long i; for (i = 0; i < 32; i++) @@ -129,7 +129,7 @@ void UnityPrintMask(const unsigned long mask, const unsigned long number) { UNITY_OUTPUT_CHAR('X'); } - bit = bit << 1; + bit = bit >> 1; } }