Conversation
Fixes error in Android where FILE is only accessible as opaque type. Code now complies with: FIO38-C. Do not copy a FILE object, See: https://wiki.sei.cmu.edu/confluence/display/c/FIO38-C.+Do+not+copy+a+FILE+object
|
FILE object is copied so a temporary FILE can be used for std output and input streams testing, and at the end of each test case the captured FILE object are reverted back to the original values. The best approach I can think of now is to add a macro that will exclude the FILE capture feature during compilation and the flag to exclude the feature at runtime: CESTER_NO_STREAM_CAPTURE
--cester-nostreamcapture |
|
I will make an update to the framework to selectively compile FILE capturing feature |
|
Thanks, interesting. Why provide a runtime flag though? |
|
Issue 65 may be an alternative solution to the error in Android. |
I provide an alternate runtime flag, in in case the feature wants to exclude after the test has been compiled. |
Fixes error in Android, where FILE is only accessible as opaque type and therefore fails to compile with incomplete type error.
Code now complies with: FIO38-C. Do not copy a FILE object, See: https://wiki.sei.cmu.edu/confluence/display/c/FIO38-C.+Do+not+copy+a+FILE+object