slightly better system testing

This commit is contained in:
Mark VanderVoord
2014-03-03 20:45:54 -05:00
parent 9375b6b2d2
commit 5547caf0ee
2 changed files with 70 additions and 43 deletions
@@ -8,6 +8,8 @@
- :cexception - :cexception
- :ignore - :ignore
- :callback - :callback
- :return_thru_ptr
- :ignore_arg
- :expect_any_args - :expect_any_args
:systest: :systest:
@@ -327,6 +329,30 @@
function_e(); function_e();
} }
- :pass: TRUE
:should: 'be ok if we ExpectAnyArgs and Expect intermixed because we are counting calls'
:code: |
test()
{
foos_Expect("Hello");
foos_ExpectAnyArgs();
foos_ExpectAnyArgs();
function_e();
}
- :pass: FALSE
:should: 'be able to detect Expect problem if we ExpectAnyArgs and Expect intermixed'
:code: |
test()
{
foos_Expect("Hello");
foos_ExpectAnyArgs();
foos_Expect("Wrong");
function_e();
}
- :pass: FALSE - :pass: FALSE
:should: 'fail if we do not ExpectAnyArgs a call once because we are counting calls' :should: 'fail if we do not ExpectAnyArgs a call once because we are counting calls'
:code: | :code: |
@@ -8,6 +8,7 @@
- :callback - :callback
- :return_thru_ptr - :return_thru_ptr
- :ignore_arg - :ignore_arg
- :expect_any_args
:callback_after_arg_check: true :callback_after_arg_check: true
:callback_include_count: false :callback_include_count: false
:treat_externs: :include :treat_externs: :include