aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/unittest/string_test.c
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2019-02-27 08:19:27 -0800
committerSteven Luong <sluong@cisco.com>2019-02-27 08:31:58 -0800
commit69818c696445298ce1f8e95c2f6eefc48f0b9197 (patch)
tree58a2a505a17a2caaed1b11b533b4f2dc3c40bb53 /src/plugins/unittest/string_test.c
parentc28cbd4071503021823de2175ebf661d1f9b84cf (diff)
string_test: The dark side of coverity
Me: "Mr Coverity, I thought I fixed the dead code warning just few days ago in this file. Why are you still complaining about the same stuff to me?" Mr. Coverity: "Duh! But you are supposed to fix all occurences in the same file." Me: "Mr. Coverity, I didn't see you flag the warning in the other places last time?" Mr. Coverity: "Shh! That is the secret of my dark side!" Change-Id: I565eccd90bf1bb39c9881664d361f83396ca8bcc Signed-off-by: Steven Luong <sluong@cisco.com>
Diffstat (limited to 'src/plugins/unittest/string_test.c')
-rw-r--r--src/plugins/unittest/string_test.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/unittest/string_test.c b/src/plugins/unittest/string_test.c
index 7e08bdfa29c..5016a86ac82 100644
--- a/src/plugins/unittest/string_test.c
+++ b/src/plugins/unittest/string_test.c
@@ -442,8 +442,6 @@ test_clib_strncmp (vlib_main_t * vm, unformat_input_t * input)
v_indicator = strncmp (s1, "Every moment is a fresh beginning", s1len);
if (v_indicator != 0)
return -1;
- if (v_indicator != indicator)
- return -1;
/* s1 > s2, 0 is expected since comparison is no more than n character */
indicator = clib_strncmp (s1, "Every moment is a fresh begin",
@@ -455,8 +453,6 @@ test_clib_strncmp (vlib_main_t * vm, unformat_input_t * input)
sizeof ("Every moment is a fresh begin") - 1);
if (v_indicator != 0)
return -1;
- if (v_indicator != indicator)
- return -1;
/* s1 < s2, < 0 is expected */
indicator = clib_strncmp (s1, "Every moment is fresh beginning",