diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-12-21 23:19:08 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-12-21 23:45:22 +1100 |
commit | ec7dc6a619d7fca83a49065c45fdbc0fa93249a0 (patch) | |
tree | 190c57565c474380763599c5df2010c1c89e9c9f | |
parent | ad35153ef40ade858302dab2877353682604265b (diff) | |
download | samba-ec7dc6a619d7fca83a49065c45fdbc0fa93249a0.tar.gz samba-ec7dc6a619d7fca83a49065c45fdbc0fa93249a0.tar.bz2 samba-ec7dc6a619d7fca83a49065c45fdbc0fa93249a0.zip |
s4-torture: update uuid_compare test for new behaviour
-rw-r--r-- | source4/torture/ndr/ndr.c | 13 |
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; } |