Setting a test not run under a task

Paul J.
Thousand Oaks, CA

May 13, 2015
16 Posts

0  |  0  

Re: Setting a test not run under a task

I'm a newbie at this and I am using Test Executive. I enable a timer interrupt to call  functiion1 and then call function2 to execute. While function2 is executing the timer interrupts, function1 executes and then calls a test to occur. How do I set the test that is being called, not to be executed under the current task? In other words, a test is to be called by an interrupt but it is listed under the current task I am executing and is being called as one of the tests under the task? Do I somehow need to create a test that is not under a task?

Thanks,
Paul

Solution Available
DrATEasy (Ron Y.)
Mission Viejo, CA

May 14, 2015
358 Posts

1  |  0  

Re: Setting a test not run under a task

Add a WaitForTimer() call in the beginning of the test you want to wait for the timer. The wait procedure can wait:

Procedure WaitForTimer()
{
   repeat
       WaitForEvent()  ! not consume 100% cpu
   until bTimer=True
   bTimer=False       ! reset the timer
}

The timer procedure should set  bTimer  to True if interrupt received.



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]