0

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().

Nathan Fellman
  • 122,701
  • 101
  • 260
  • 319

1 Answers1

1

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

danielpoe
  • 3,756
  • 23
  • 18