]> git.ipfire.org Git - thirdparty/tor.git/commit
test_util_spawn_background_ok: fix expectation
authorPeter Palfrader <peter@palfrader.org>
Sat, 17 Dec 2011 10:22:31 +0000 (11:22 +0100)
committerNick Mathewson <nickm@torproject.org>
Sat, 17 Dec 2011 17:21:51 +0000 (12:21 -0500)
commitf6b19ac79c348f732eb08405367d7a434f8d8f08
tree3963455e2334ef4264e10e993686d658e4f83a5e
parentd37cb8f74aa741cebe0001a4b56bd2bae539e225
test_util_spawn_background_ok: fix expectation

test_util_spawn_background_ok() hardcoded the expected value
for ENOENT to 2.  This isn't portable as error numbers are
platform specific, and particularly the hurd has ENOENT at
0x40000002.

Construct expected string at runtime, using the correct value
for ENOENT (closes: #4733).
src/test/test_util.c