Commit e72f6652 authored by Shuhei Matsumoto's avatar Shuhei Matsumoto Committed by Tomasz Zawadzki
Browse files

test/nvme/connect_stress: Return EXIT_FAILURE if test_controller() failed



The test program, test/nvme/connect_stress had returned always 0
regardless of the result of the test. It will be better to return
EXIT_FAILURE if test_controller() returned non-zero value as reported by
the github issue #3071.

This partially fixes the github issue #3071.

Signed-off-by: default avatarShuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I090678371000878f46b825d371938184de532ecc
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19342


Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent 36bf59bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -268,5 +268,5 @@ main(int argc, char **argv)
		rc = test_controller();
	}

	return 0;
	return rc == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}