X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit-third-party%2Futc-Dali-Flexbox-Layout.cpp;h=0ae564fe3ecaa8be874ec2bc4e7856e13020019f;hb=6c62f5aa91b434193d0fc11b7763ba7286372fc4;hp=832d73ec74ca956c2553ffa408900cf63516d172;hpb=9eecb41468197eb2fc03e55c151011ea387e1bed;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit-third-party/utc-Dali-Flexbox-Layout.cpp b/automated-tests/src/dali-toolkit-third-party/utc-Dali-Flexbox-Layout.cpp index 832d73e..0ae564f 100644 --- a/automated-tests/src/dali-toolkit-third-party/utc-Dali-Flexbox-Layout.cpp +++ b/automated-tests/src/dali-toolkit-third-party/utc-Dali-Flexbox-Layout.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,9 @@ * */ -#include +#include + +#include // GTest fails to compile with "error: return-statement with a value, in function returning 'void'" error // if using dali assert function so define new assert with returning void. #define _ASSERT_H_ @@ -26,7 +28,7 @@ fprintf(stderr, \ "Following expression is not true:\n" \ "%s\n", #exp); \ - return; \ + std::abort(); \ } #include #undef GTEST_HAS_DEATH_TEST @@ -76,10 +78,10 @@ int UtcDaliFlexboxLayoutTest(void) { - ToolkitTestApplication application; tet_infoline("UtcDaliFlexboxLayoutTest"); - int argc = 0; - testing::InitGoogleTest( &argc, static_cast(nullptr) ); + int argc = 1; + const char* argv = "yoga-gtest"; + testing::InitGoogleTest( &argc, const_cast< char** >( &argv ) ); // The test function is a 3rd party function that should return true if the test passes if( !RUN_ALL_TESTS() )