提交 8553ac6a 编写于 作者: F fengjiayi

fix unittests

上级 3fab4f65
......@@ -73,7 +73,7 @@ struct EnforceNotMet : public std::exception {
} catch (const std::exception& exp) {
std::ostringstream sout;
sout << string::Sprintf("'%s' at [%s:%d]", exp.what(), f, l) << std::endl;
sout << string::Sprintf("%s at [%s:%d]", exp.what(), f, l) << std::endl;
sout << "PaddlePaddle Call Stacks: " << std::endl;
void* call_stack[TRACE_STACK_LIMIT];
......@@ -105,7 +105,7 @@ struct EnforceNotMet : public std::exception {
struct EOFException : public std::exception {
std::string err_str_;
EOFException(const char* err_msg, const char* f, int l) {
err_str_ = string::Sprintf("'%s' at [%s:%d]", err_msg, f, l);
err_str_ = string::Sprintf("%s at [%s:%d]", err_msg, f, l);
}
const char* what() const noexcept { return err_str_.c_str(); }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册