-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix test warnings and delayload linking #2843
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -417,4 +417,4 @@ const LearningModelSesssionAPITestApi& getapi() { | |
CloseSession, | ||
}; | ||
return api; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
#pragma once | ||
|
||
using VoidTest = void (*)(); | ||
using SetupTest = VoidTest; | ||
|
||
constexpr bool alwaysTrue() { | ||
return true; | ||
} | ||
#define WINML_SUPRESS_UNREACHABLE_BELOW(statement) \ | ||
if (alwaysTrue()) { statement; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it required to fix C4702 warnings ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, because the code after GPUTEST is unreachable if building without DML |
||
|
||
#ifdef BUILD_GOOGLE_TEST | ||
#include "googleTestMacros.h" | ||
#else | ||
#ifdef BUILD_TAEF_TEST | ||
#include "taefTestMacros.h" | ||
#endif | ||
#endif | ||
#endif |
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.
Needed because of line 89, which sets delay loaded libs