Function Capturing

From STRIDE Wiki
Revision as of 01:31, 13 March 2010 by Ivailop (talk | contribs) (Created page with 'For a user function to be exposed to the STRIDE Test System it needs to be captured. Once made available it could be remoted or doubled. == Specification == By using the STRIDE …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

For a user function to be exposed to the STRIDE Test System it needs to be captured. Once made available it could be remoted or doubled.

Specification

By using the STRIDE special scl_function pragma any global function could be captured. For example to capture the following function:

/* foo.h */
int foo(void);

create a new header file and add the following pragma statement:

/* foo_SCL.h */
#include "foo.h"

#ifdef _SCL
#pragma scl_function(foo)
#endif

Once captured it could be instrumented by simply passing the new header file to the STRIDE Build Tools.