Fix getopt_long tests
Fix getopt_long tests

This problem was reproduced on FreeBSD

Change-Id: Ia7873eaa1929c6e2b1ca549df50a4f7ea8f51c3d
Reviewed-on: http://review.couchbase.org/11165
Reviewed-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>
Tested-by: Sergey Avseyev <87f6d5e4fd3644c3c20800cde7fd3ad1569370b3@gmail.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>

trondn/libcouchbase,mody/libcouchbase,kojiromike/libcouchbase,couchbase/libcouchbase,avsej/libcouchbase,uvenum/libcouchbase,PureSwift/libcouchbase,maxim-ky/libcouchbase,couchbase/libcouchbase,mody/libcouchbase,maxim-ky/libcouchbase,kojiromike/libcouchbase,maxim-ky/libcouchbase,couchbase/libcouchbase,trondn/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,avsej/libcouchbase,senthilkumaranb/libcouchbase,trondn/libcouchbase,kojiromike/libcouchbase,mnunberg/libcouchbase,couchbase/libcouchbase,uvenum/libcouchbase,signmotion/libcouchbase,couchbase/libcouchbase,PureSwift/libcouchbase,senthilkumaranb/libcouchbase,mnunberg/libcouchbase,mody/libcouchbase,trondn/libcouchbase,senthilkumaranb/libcouchbase,trondn/libcouchbase,signmotion/libcouchbase,uvenum/libcouchbase,avsej/libcouchbase,couchbase/libcouchbase,signmotion/libcouchbase,signmotion/libcouchbase,senthilkumaranb/libcouchbase,mnunberg/libcouchbase,mnunberg/libcouchbase,avsej/libcouchbase,PureSwift/libcouchbase,mody/libcouchbase,maxim-ky/libcouchbase,mnunberg/libcouchbase,couchbase/libcouchbase,kojiromike/libcouchbase,uvenum/libcouchbase,PureSwift/libcouchbase,uvenum/libcouchbase