From 53f3b4bd14057853e6861acc4c2d5f9e508fd2fd Mon Sep 17 00:00:00 2001 From: liuruilong Date: Thu, 24 May 2018 14:31:44 +0800 Subject: [PATCH] rename execption --- src/common/{exception.h => assert.h} | 0 test/CMakeLists.txt | 4 ++-- test/common/{test_exception.cpp => test_assert.cpp} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/common/{exception.h => assert.h} (100%) rename test/common/{test_exception.cpp => test_assert.cpp} (95%) diff --git a/src/common/exception.h b/src/common/assert.h similarity index 100% rename from src/common/exception.h rename to src/common/assert.h diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 50aacc8941..b64f96bd94 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -58,5 +58,5 @@ ADD_EXECUTABLE(test-gemm common/test_gemm.cpp) target_link_libraries(test-gemm paddle-mobile) # gen test -ADD_EXECUTABLE(test-exception common/test_exception.cpp) -target_link_libraries(test-exception paddle-mobile) \ No newline at end of file +ADD_EXECUTABLE(test-assert common/test_assert.cpp) +target_link_libraries(test-assert paddle-mobile) \ No newline at end of file diff --git a/test/common/test_exception.cpp b/test/common/test_assert.cpp similarity index 95% rename from test/common/test_exception.cpp rename to test/common/test_assert.cpp index 1b74b7c24e..794e11e5cc 100644 --- a/test/common/test_exception.cpp +++ b/test/common/test_assert.cpp @@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -#include "common/exception.h" +#include "common/assert.h" int main() { PADDLE_MOBILE_ASSERT(false, "assert"); -- GitLab