test-tool: Fix a segmentation fault in test_receive_copy_results_op_params()
Do not access the RECEIVE_COPY_RESULTS() output if this operation failed. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
@@ -418,7 +418,7 @@ do { \
|
||||
} while (0);
|
||||
|
||||
#define RECEIVE_COPY_RESULTS(...) \
|
||||
do { \
|
||||
({ \
|
||||
int _r; \
|
||||
_r = receive_copy_results(__VA_ARGS__); \
|
||||
if (_r == -2) { \
|
||||
@@ -429,7 +429,8 @@ do { \
|
||||
return; \
|
||||
} \
|
||||
CU_ASSERT_EQUAL(_r, 0); \
|
||||
} while (0);
|
||||
_r; \
|
||||
})
|
||||
|
||||
#define RELEASE6(...) \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user