-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[unittests] Add unittests for SwitchStateBaseHostif #1133
base: master
Are you sure you want to change the base?
Conversation
@@ -46,7 +47,7 @@ int SwitchStateBase::vs_create_tap_device( | |||
|
|||
const char *tundev = "/dev/net/tun"; | |||
|
|||
int fd = open(tundev, O_RDWR); | |||
int fd = saimeta::System::open(tundev, O_RDWR); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrapper on system function is need to simulate function succes on unittests, it seems to me an ugly solution but i could not find better one, any suggestions ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the performance a concern? Does debug build help the coverage anyhow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no performance impact since those apis are not on critical paths, coverage is achieved in places required by #1110
ut fail probably not related to the change |
No description provided.