소스 검색

cpg test agent: Fix typo in assert

Assert should compare rc, instead of setting it.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Jan Friesse 12 년 전
부모
커밋
a9b4bf695c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      cts/agents/cpg_test_agent.c

+ 1 - 1
cts/agents/cpg_test_agent.c

@@ -325,7 +325,7 @@ static void read_messages (int sock, char* atmost_str)
 		}
 	}
 	rc = send (sock, big_and_buf, strlen (big_and_buf), 0);
-	assert(rc = strlen (big_and_buf));
+	assert(rc == strlen (big_and_buf));
 }
 
 static qb_loop_timer_handle more_messages_timer_handle;