Whamcloud - gitweb
LU-10885 tests: fix up flocks_test bugs and code style 92/32092/10
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 2 Oct 2018 21:52:02 +0000 (15:52 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 18 Feb 2019 06:37:57 +0000 (06:37 +0000)
commit3ce41b7168f7a3b5bacb5ae35f278dce4a994fae
tree073040eba2f9f462bfcfed9cb08ffc14035459da
parentaabcfb0af701d641bbe18336b22c7288c96c7115
LU-10885 tests: fix up flocks_test bugs and code style

Fix the flocks_test test program:
- don't segfault if run without any command-line arguments
- return errors from test2 to the caller

Clean up flocks_test code style:
- tabify the whole file
- don't put assignments inside conditionals
- print error messages where needed.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I2555c741b0c170a43c47c16425cba3186e3ebbe5
Reviewed-on: https://review.whamcloud.com/32092
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/flocks_test.c