Is there any way to specify that a function should be called when a test ends in Specman?
I'm looking for something similar to C's atexit().
Is there any way to specify that a function should be called when a test ends in Specman?
I'm looking for something similar to C's atexit().
Hi Nathan,
haven't tried my self, but you should probably have a look at the finalize() or quit() methods which are defined for any_struct. You could try to extend it for sys.
extend sys {
finalize() is also {
// ...
};
};
Cheers, Daniel