aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-10-10 11:15:35 -0400
committerNick Mathewson <nickm@torproject.org>2013-10-10 11:15:35 -0400
commit004a9c6dd11ba71f310b750f00d5ed403faceb5a (patch)
tree6e6681b9b18745d631ded72fd92f51a78019de22 /src/test
parent6eb7f2f889d9e047ea75bad15531d4aff4dbc711 (diff)
downloadtor-004a9c6dd11ba71f310b750f00d5ed403faceb5a.tar
tor-004a9c6dd11ba71f310b750f00d5ed403faceb5a.tar.gz
Fix unit test for format_helper_exit_status
Fix format_helper_exit_status to allow full HEX_ERRNO_SIZE answers, *and* increase the buffer length again.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 4f9eb73e0..6c72247e9 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -2169,6 +2169,7 @@ test_util_exit_status(void *ptr)
n = format_helper_exit_status(0xFF, -0x80000000, hex_errno);
test_streq("FF/-80000000\n", hex_errno);
test_eq(n, strlen(hex_errno));
+ test_eq(n, HEX_ERRNO_SIZE);
clear_hex_errno(hex_errno);
n = format_helper_exit_status(0x7F, 0, hex_errno);