[PATCH] s4:torture: data_blob_hex_string() output is now lowercase.

Andrew Kroeger andrew at id10ts.net
Fri Sep 25 14:10:40 MDT 2009


Based on the change in commit fb84edabbe9f358031117de2cf78613c704ac600, these
tests needs to expect lowercase output.
---
 lib/util/tests/data_blob.c |    2 +-
 source4/torture/ldb/ldb.c  |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/util/tests/data_blob.c b/lib/util/tests/data_blob.c
index 875e5fd..f0b02b8 100644
--- a/lib/util/tests/data_blob.c
+++ b/lib/util/tests/data_blob.c
@@ -78,7 +78,7 @@ static bool test_cmp(struct torture_context *tctx)
 static bool test_hex_string(struct torture_context *tctx)
 {
 	DATA_BLOB a = data_blob_string_const("\xC\xA\xF\xE");
-	torture_assert_str_equal(tctx, data_blob_hex_string(tctx, &a), "0C0A0F0E", "hex string");
+	torture_assert_str_equal(tctx, data_blob_hex_string(tctx, &a), "0c0a0f0e", "hex string");
 	return true;
 }
 
diff --git a/source4/torture/ldb/ldb.c b/source4/torture/ldb/ldb.c
index 64ed669..c702194 100644
--- a/source4/torture/ldb/ldb.c
+++ b/source4/torture/ldb/ldb.c
@@ -31,10 +31,10 @@
 #include "torture/local/proto.h"
 
 static const char *sid = "S-1-5-21-4177067393-1453636373-93818737";
-static const char *hex_sid = "01040000000000051500000081FDF8F815BBA456718F9705";
+static const char *hex_sid = "01040000000000051500000081fdf8f815bba456718f9705";
 static const char *guid = "975ac5fa-35d9-431d-b86a-845bcd34fff9";
 static const char *guid2 = "{975ac5fa-35d9-431d-b86a-845bcd34fff9}";
-static const char *hex_guid = "FAC55A97D9351D43B86A845BCD34FFF9";
+static const char *hex_guid = "fac55a97d9351d43b86a845bcd34fff9";
 
 static const char *prefix_map_newline = "2:1.2.840.113556.1.2\n5:2.16.840.1.101.2.2.3";
 static const char *prefix_map_semi = "2:1.2.840.113556.1.2;5:2.16.840.1.101.2.2.3";
-- 
1.6.0.6


--------------070705020001060204080909--


More information about the samba-technical mailing list