mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-07-29 15:27:49 +00:00
Let's enable validation of examples. failures should trip errors.
Also make them verbose so we can see what is going on.
This commit is contained in:
@@ -23,7 +23,7 @@ ${BUILD_DIR}/main: ${SRC_DIR}/main.c ${SRC_DIR}/foo.c
|
||||
${CC} $< -o $@
|
||||
|
||||
run:
|
||||
./build/main || true
|
||||
./build/main
|
||||
|
||||
test: setup
|
||||
|
||||
|
||||
@@ -13,5 +13,5 @@ void test_foo_init_should_initialize_multiplier()
|
||||
{
|
||||
foo_init();
|
||||
|
||||
TEST_ASSERT_FALSE(1);
|
||||
TEST_ASSERT_FALSE(0);
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ module RakefileHelpers
|
||||
else
|
||||
"#{simulator[:command]} #{simulator[:pre_support]} #{executable} #{simulator[:post_support]}"
|
||||
end
|
||||
output = execute(cmd_str, true, true)
|
||||
output = execute(cmd_str, true)
|
||||
test_results = $cfg['compiler']['build_path'] + test_base
|
||||
test_results += if output.match(/OK$/m).nil?
|
||||
'.testfail'
|
||||
|
||||
Reference in New Issue
Block a user