summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-21 23:19:08 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-21 23:45:22 +1100
commitec7dc6a619d7fca83a49065c45fdbc0fa93249a0 (patch)
tree190c57565c474380763599c5df2010c1c89e9c9f /source4
parentad35153ef40ade858302dab2877353682604265b (diff)
downloadsamba-ec7dc6a619d7fca83a49065c45fdbc0fa93249a0.tar.gz
samba-ec7dc6a619d7fca83a49065c45fdbc0fa93249a0.tar.bz2
samba-ec7dc6a619d7fca83a49065c45fdbc0fa93249a0.zip
s4-torture: update uuid_compare test for new behaviour
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/ndr/ndr.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/source4/torture/ndr/ndr.c b/source4/torture/ndr/ndr.c
index 8602003017..471c398b77 100644
--- a/source4/torture/ndr/ndr.c
+++ b/source4/torture/ndr/ndr.c
@@ -233,12 +233,21 @@ static bool test_compare_uuid(struct torture_context *tctx)
"GUID diff invalid");
g1.time_low = 10;
- torture_assert_int_equal(tctx, 10, GUID_compare(&g1, &g2),
+ torture_assert_int_equal(tctx, 1, GUID_compare(&g1, &g2),
"GUID diff invalid");
g1.time_low = 0;
g1.clock_seq[1] = 20;
- torture_assert_int_equal(tctx, 20, GUID_compare(&g1, &g2),
+ torture_assert_int_equal(tctx, 1, GUID_compare(&g1, &g2),
+ "GUID diff invalid");
+
+ g1.time_low = ~0;
+ torture_assert_int_equal(tctx, 1, GUID_compare(&g1, &g2),
+ "GUID diff invalid");
+
+ g1.time_low = 0;
+ g2.time_low = ~0;
+ torture_assert_int_equal(tctx, -1, GUID_compare(&g1, &g2),
"GUID diff invalid");
return true;
}