From 80445f7596af353285a51d01e50d36037a6a6107 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 7 Feb 2007 03:21:56 +0000 Subject: r21213: the build farm seems to show that FreeBSD 6.2 has two different error codes for "Invalid argument". This change should help track that down (This used to be commit 608aac7804754fed1c68b847676d7a71a586e4bb) --- source4/torture/local/iconv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/torture/local/iconv.c b/source4/torture/local/iconv.c index 87056d1b95..f21bacf4bb 100644 --- a/source4/torture/local/iconv.c +++ b/source4/torture/local/iconv.c @@ -184,7 +184,9 @@ static bool test_buffer(struct torture_context *test, show_buf(" rem1:", inbuf+(size-size_in1), size_in1); show_buf(" rem2:", inbuf+(size-size_in2), size_in2); torture_fail(test, talloc_asprintf(test, - "e1=%s e2=%s", strerror(errno1), strerror(errno2))); + "e1=%d/%s e2=%d/%s", + errno1, strerror(errno1), + errno2, strerror(errno2))); } torture_assert_int_equal(test, outsize1, outsize2, "outsize mismatch"); -- cgit