]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test: checking negative returns from creat()
authoramitkuma <amitkuma@redhat.com>
Tue, 3 Oct 2017 11:19:35 +0000 (16:49 +0530)
committeramitkuma <amitkuma@redhat.com>
Thu, 19 Oct 2017 14:16:13 +0000 (19:46 +0530)
commit52c86e8b05b92aad8912d13a06da30a5de41d3e7
tree679ca0318050538d4027893caa86506c4cab758e
parent0ee5afdbd0c9b457a85cf87ff9d809bdbe7e81f0
test: checking negative returns from creat()

Fixes the coverity issue:

CID 1395303 (#2 of 2): Argument cannot be negative (NEGATIVE_RETURNS)
79. negative_returns: creat(pathname.c_str(), 384U) is passed
to a parameter that cannot be negative.
Signed-off-by: Amit Kumar amitkuma@redhat.com
src/test/os/TestLFNIndex.cc