(Automated Tests) Added macro to print meaningful line numbers in test checking functions 69/126469/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 21 Apr 2017 13:57:00 +0000 (14:57 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 21 Apr 2017 13:57:27 +0000 (14:57 +0100)
Change-Id: I89bf3f89cdbc5f6f39bdcc982381d551da2cd7d8

automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dali-test-suite-utils.h

index 03c788c..2b84d39 100644 (file)
@@ -23,6 +23,7 @@
 #include <cstdio>
 #include <iostream>
 #include <cstring>
+#include <string>
 
 // INTERNAL INCLUDES
 #include <dali/public-api/dali-core.h>
@@ -44,6 +45,7 @@ using namespace Dali;
 #define TOKENPASTE(x,y) x y
 #define TOKENPASTE2(x,y) TOKENPASTE( x, y )
 #define TEST_LOCATION TOKENPASTE2( "Test failed in ", TOKENPASTE2( __FILE__, TOKENPASTE2( ", line ", STRINGIZE(__LINE__) ) ) )
+#define TEST_INNER_LOCATION(x) ( std::string(x) + " (" + STRINGIZE(__LINE__) + ")" ).c_str()
 
 #define TET_UNDEF 2
 #define TET_FAIL 1