Browse Source

fix ut

tags/v1.3.0
wangxiaotian22 3 years ago
parent
commit
470bd17be6
3 changed files with 8 additions and 2 deletions
  1. +6
    -0
      tests/depends/error_manager/src/error_manager_stub.cc
  2. +1
    -1
      tests/ut/common/graph/CMakeLists.txt
  3. +1
    -1
      tests/ut/ge/CMakeLists.txt

+ 6
- 0
tests/depends/error_manager/src/error_manager_stub.cc View File

@@ -18,6 +18,12 @@

using namespace ErrorMessage;

namespace ErrorMessage {
int FormatErrorMessage(char *str_dst, size_t dst_max, const char *format, ...) {
return 1;
}
}

thread_local Context ErrorManager::error_context_ = {0, "", "", ""};

ErrorManager &ErrorManager::GetInstance() {


+ 1
- 1
tests/ut/common/graph/CMakeLists.txt View File

@@ -20,7 +20,7 @@ set(CMAKE_CXX_STANDARD 11)
set(PROTO_LIST
"${GE_CODE_DIR}/metadef/proto/om.proto"
"${GE_CODE_DIR}/metadef/proto/ge_ir.proto"
"${GE_CODE_DIR}/metadef/proto/proto_inner/ge_onnx.proto"
"${GE_CODE_DIR}/metadef/proto/onnx/ge_onnx.proto"
)

protobuf_generate(ge PROTO_SRCS PROTO_HDRS ${PROTO_LIST})


+ 1
- 1
tests/ut/ge/CMakeLists.txt View File

@@ -33,7 +33,7 @@ set(PROTO_LIST
"${GE_CODE_DIR}/metadef/proto/tensorflow/tensor_shape.proto"
"${GE_CODE_DIR}/metadef/proto/tensorflow/types.proto"
"${GE_CODE_DIR}/metadef/proto/tensorflow/node_def.proto"
"${GE_CODE_DIR}/metadef/proto/proto_inner/ge_onnx.proto"
"${GE_CODE_DIR}/metadef/proto/onnx/ge_onnx.proto"
)

protobuf_generate(ge PROTO_SRCS PROTO_HDRS ${PROTO_LIST})


Loading…
Cancel
Save