summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d084a6d)
Had to use std::abort instead of return in the assert as some functions
using this assert have void returns, others do not and it produces an
error otherwise.
argc and argv cannot be 0 and nullptr as it seems it's now used within
gtest.
Change-Id: I305b16ba402b7f7066584959fc7a8252e099abcd
#include <dali-toolkit-test-suite-utils.h>
// 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.
#include <dali-toolkit-test-suite-utils.h>
// 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.
fprintf(stderr, \
"Following expression is not true:\n" \
"%s\n", #exp); \
fprintf(stderr, \
"Following expression is not true:\n" \
"%s\n", #exp); \
}
#include <gtest/gtest.h>
#undef GTEST_HAS_DEATH_TEST
}
#include <gtest/gtest.h>
#undef GTEST_HAS_DEATH_TEST
int UtcDaliFlexboxLayoutTest(void)
{
int UtcDaliFlexboxLayoutTest(void)
{
- ToolkitTestApplication application;
tet_infoline("UtcDaliFlexboxLayoutTest");
tet_infoline("UtcDaliFlexboxLayoutTest");
- int argc = 0;
- testing::InitGoogleTest( &argc, static_cast<char**>(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() )
// The test function is a 3rd party function that should return true if the test passes
if( !RUN_ALL_TESTS() )