2 // Copyright (c) 2020 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
29 "\n[TCT][%s][Line : %d] Assert Fail; Following expression is not true: %s\n", \
30 __FILE__, __LINE__, #exp); \
35 #define assert_eq(var, ref) \
39 "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
40 __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
45 #define assert_eq_no_return(var, ref) \
49 "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are not equal\n", \
50 __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
55 #define assert_neq_no_return(var, ref) \
59 "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
60 __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
65 #define assert_neq(var, ref) \
69 "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) and (%s == 0x%x) are equal\n", \
70 __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
75 #define assert_gt(var, ref) \
79 "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than (%s == 0x%x)\n", \
80 __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
85 #define assert_geq(var, ref) \
89 "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not greater than or equal to (%s == 0x%x)\n", \
90 __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
95 #define assert_lt(var, ref) \
99 "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than (%s == 0x%x)\n", \
100 __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \
105 #define assert_leq(var, ref) \
109 "\n[TCT][%s][Line : %d] Assert fail; Values (%s == 0x%x) is not lower than or equal to (%s == 0x%x)\n", \
110 __FILE__, __LINE__, #var, (int)var, #ref, (int)ref); \