I am currently trying to test a function with an infinite loop and im having a problem how to break.
Is there anyway I can test this?
Thanks in advance.
void classA::process()
{
unsigned int return_val;
proxy_class& proxy = proxy.instance();
while(1) {
return_val = proxy.run();
if(0 == return_val) {
//some code here
}
}
return;
}