We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b133782 commit 0c2d1cdCopy full SHA for 0c2d1cd
onnxruntime/test/framework/ort_model_only_test.cc
@@ -24,6 +24,8 @@
24
25
#include "gmock/gmock.h"
26
#include "gtest/gtest.h"
27
+#define WIDEN2(x) L##x
28
+#define WIDEN(x) WIDEN2(x)
29
30
using namespace ONNX_NAMESPACE;
31
@@ -41,7 +43,7 @@ std::filesystem::path ResolveTestPath(const std::filesystem::path& path) {
41
43
}
42
44
45
static const std::filesystem::path kSourceTestRoot =
- std::filesystem::path{ORT_TSTR(__FILE__)}.parent_path().parent_path();
46
+ std::filesystem::path{WIDEN(__FILE__)}.parent_path().parent_path();
47
std::filesystem::path source_candidate = kSourceTestRoot / path;
48
if (std::filesystem::exists(source_candidate)) {
49
return source_candidate;
0 commit comments