Skip to content

Commit

Permalink
external/stress_tool: add assert_neq
Browse files Browse the repository at this point in the history
add assert_neq
  • Loading branch information
pillip8282 authored and an4967 committed Dec 29, 2021
1 parent c573a94 commit 69f5ce1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions external/include/stress_tool/st_perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,15 @@ void perf_set_keeprunning(int enable);
} \
} while (0)

#define ST_ASSERT_NEQ(val, exp) \
do { \
if (exp == val) { \
printf("\t[ERROR] val (%d) exp (%d)\n", val, exp); \
printf("\t %s\t%s:%d\n", __FUNCTION__, __FILE__, __LINE__); \
assert(0); \
} \
} while (0)

#define ST_EXPECT_EQ2(val1, val2, exp) \
do { \
if (exp != val1 && exp != val2) { \
Expand Down

0 comments on commit 69f5ce1

Please sign in to comment.