当您测试您的程序时,Purify将会提供整个真实的api函数定义,而存根会被忽视。
When you instrument your program, Purify provides the real definitions for the API functions, and stubs are ignored.
实际上您可以使用系统中的strcmp,但是测试程序错误地认为缺少这个函数。
In fact, you could indeed use STRCMP on that system, but the test program incorrectly thought it was missing.
您可以用 if(purify_is_running()) 来包围多个 Purify API ,从而使 Purify 函数命令不会在您未测试的程序中变得缓慢(请看 列表 4)。
You can surround multiple Purify APIs with if(purify_is_running()) to keep Purify function calls from slowing down your uninstrumented program (see Listing 4).
应用推荐