You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without the changes, the result was std::exception. When I tried the changes, the result was Message.
Ahmed
Quote(Alec Thilenius )
To answer your comment, that is because a runtime error is not an std::exception. I 'think' that they are both children of the exception object, but I am not sure about that one. For my own curiosity could you please send me the code that generated a runtime error? I may add it to the framework as a supported type.
Quote(Ahmed Alshakh)
I don't know why I can't see your comment here, but I can see it on the updates. I don't really know how to use git. Sorry..
I made the change because when I tried to throw a "runtime_error" UTFreamework showed "std::exception" not my message. I played with it for long time until it worked. I am not sure this is the right change but It worked for me.
Quote(Alec Thilenius )
Could you please elaborate on why you made this change? Passing by value is fine, and had been tested.
Quote(Ahmed Alshakh )
The function FaultException() should get the exception by reference not by value in order to show e.what() instead of std::exception
The text was updated successfully, but these errors were encountered:
Ahhh yes. I see what you are talking about now. It is specific to GCC. The same thing does not show up in VC++. I'm guessing what ever implementation GCC is using for std::exception does not have the copy constructor defined property. I'll take a look at this when I finish the next version of the unit testing framework.
I did not know that there are differences like that between GCC and VC++! I should have said I am using GCC.
Could you please notify me when the new version of UTFreamwork comes out. I like it very much. I couldn't find another UniteTest I can understand.
This issue is to continue the descussion about UTFreamwork changes.
I tried a code like this.
Without the changes, the result was
std::exception
. When I tried the changes, the result wasMessage
.Ahmed
Quote(Alec Thilenius )
Quote(Ahmed Alshakh)
Quote(Alec Thilenius )
Quote(Ahmed Alshakh )
The text was updated successfully, but these errors were encountered: