vinayhs 270002JFCW Visits (2006)
In Rational Test RealTime (RTRT) I want to test function foo() in the sample source code, where I will expect stub call some_Task(), but some_Task() function is present in endless loop.
To handle this endless loop, in order to do that I need to foreclose exit through RTRT from function foo().
I can use setjmp()/longjmp functionality to "exit" a test under certain condition. If some_Task() is stubbed then it can be done.
The below steps explain how to resume the execution of the test script when user code has reached an handled exception:
- stub the function that would put the user program in 'stopped' mode or 'exit'
- resume the execution of the test (using setjmp/longjmp combination)
First of all, the ptu has to include the header file <setjmp.h>
Note the use of '@' that would prevent the PTU parser to search for this file.
At this stage, the compiler header files might not be available.
Then, the setjmp structure has to be declared:
DEFINE STUB PTU_globalvar
Then, a user function has to be stubbed :
DEFINE STUB STUB_c
Then, in the test code include :
@if( ! setjmp( failure_setjump) )
This should help in forming a test case to handle the endless loops.
AcdntlPoet 2700019V2G Visits (2452)
We are indeed winding down into the next holiday week and the new year, but we still know you need to get the fixes and updates you need! To give you something to do in the hopefully slow week you're having, here's the latest and greatest downloads which have gone live from Rational Support since November 30th... and don't forget to check out the downloads tag to see the fixes you may have missed over the summer and early fall months:
AcdntlPoet 2700019V2G Visits (2539)
Summer is speeding by! Staying busy covering for your coworkers while they are out on vacation, or on vacation yourself, you may have missed some of these important downloads over the past three weeks. So, take this quiet summer Friday, grab a cup of coffee, and check out the following Rational downloads which have been released over the past few weeks since July 9th, 2012:
AcdntlPoet 2700019V2G Visits (2205)
Below you will find links to the seven new downloads posted between April 24th, 2012 and today... don't forget to check out the 'tags' above to find other downloads you may have missed. You'll also find a nice bonus video exemplifying the benefits of signing into Support Portal!
The Benefits of Signing In to the IBM Support Portal- This quick tip video demonstrates the advantages of signing in to the IBM Support Portal, rather than using Support Portal anonymously. Visit the IBM Support Portal at:
AcdntlPoet 2700019V2G Visits (1841)
Here's another quick rundown of the downloads posted for Rational products in the past week. These are the downloads posted since July 27th, 2011.
Would you like to be notified immediately when downloads for YOUR product(s) are available? Then sign into MyNotifications and setup your own product lists and types of content you'd like to be notified about, you can even have these notifications emailed to you or feed into your RSS reader of choice!
Do you find these download posts helpful, annoying, beneficial, or just noise? Let us know in the comments here, or privately via email at socrcs @ us.ibm.com
image credit: (cc)