MIME-Version: 1.0 From: =?UTF-8?B?0JjQu9GM0Y8g0KjQuNC/0LjRhtC40L0=?= Date: Fri, 23 Jun 2017 14:59:45 +0500 Message-ID: Content-Type: multipart/alternative; boundary="001a114690643d04d905529da9bd" Subject: [Openvpn-devel] test usage() ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "openvpn-devel@lists.sourceforge.net" --001a114690643d04d905529da9bd Content-Type: text/plain; charset="UTF-8" Hello, following to https://github.com/OpenVPN/openvpn/commit/49629380a7bdba25c24c9d410b79946fe29249f0 I spent some days on trying to get cmocka to test usage(), I gave up :-) now, I think, we should just add "src/openvpn/openvpn --help" to .travis.yml the question is - can we rely on exit status "1" here ? $ src/openvpn/openvpn --help >/dev/null $ echo $? 1 $ why does "1" mean "ok" here ? Cheers, Ilya Shipitsin --001a114690643d04d905529da9bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,


I spent some days on try= ing to get cmocka to test usage(), I gave up :-)
now, I think, we = should just add "src/openvpn/openvpn --help" to .travis.yml
the question is - can we rely on exit status "1"=C2=A0 he= re ?


$ src/openvpn/openvpn --help >/dev/null
$ e= cho $?
1
$


why does "1" mean "o= k" here ?


Cheers,
Ilya Shipitsin

--001a114690643d04d905529da9bd--