testcase/drivers : Add check logic for fd when open
1. WID:5110402 Return value of a function 'fopen' is dereferenced at tc_loop.c:274 without checking, but it is usually checked for this function (66/67).
@@ -267,6 +267,8 @@ static void tc_driver_loop_losetup(void)
/* Positive test cases */
FILE *fp = fopen("/mnt/loopfile", "w");
+ TC_ASSERT_NEQ("fopen", fp, NULL);
+
int i;
for (i = 0; i < 1024; i++) {
fputc('a', fp);
