how to test whether an interface is defined? #3382
Unanswered
ljm0451
asked this question in
Community Help
Replies: 1 comment
-
Before jumping into macro |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks advance
I'm a newer.
for example, I want to test whether my current libc provides the hello_world() interface.
I think the macro TEST in gtest can not do this. The reason is that if there is no hello_world() interface, gtest will compile error. I want to receive a PASS or not PASS, rather than a compile/link error.
what should I do?
-----------------------------------------------------------------------update 2021年4月25日13:21:10
I want to use gtest to test the posix interface, just like using "open posix test suite" . (For example, if OS/glibc does not support a certain interface, it should tell the user "not supported" or "not passed" instead of compiling/linking errors)
Beta Was this translation helpful? Give feedback.
All reactions