Nathan Fellman
Nathan Fellman

Reputation: 127428

How can I call a routine automatically when the run ends in specman?

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

Upvotes: 0

Views: 146

Answers (1)

danielpoe
danielpoe

Reputation: 3816

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

Upvotes: 1

Related Questions