]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: assert check for negetive returns 17296/head
authoramitkuma <amitkuma@redhat.com>
Mon, 28 Aug 2017 15:43:37 +0000 (21:13 +0530)
committeramitkuma <amitkuma@redhat.com>
Mon, 28 Aug 2017 15:43:37 +0000 (21:13 +0530)
commit99d4f0857a619d349616b13a9a3e31b59c842d46
treea41a5486a04e30abbd61a54a181932c94b2e8f38
parent0bef6c7753dd3d7bc4e00a0794da805ca6ac79ca
test: assert check for negetive returns

Fixes the coverity issue:

** 1395371 Argument cannot be negative
1. negative_return_fn: Function open(file, 578, 448) returs a negative number.
2. var_assign: Assigning: signed variable fd = open

** 1395427 Argument cannot be negative
1. negative_return_fn: Function open(file, 578, 448) returns a negative number.
2. var_assign: Assigning: signed variable fd = open

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
src/test/objectstore/chain_xattr.cc