<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/lib/util/tests/time.c, branch talloc-2.4.4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>lib: add a test for null_nttime(NTTIME_THAW)</title>
<updated>2021-10-28T18:11:28+00:00</updated>
<author>
<name>Ralph Boehme</name>
<email>slow@samba.org</email>
</author>
<published>2021-10-28T08:18:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=194faa76161a12ae1eae2b471d6f159d97ef75a8'/>
<id>194faa76161a12ae1eae2b471d6f159d97ef75a8</id>
<content type='text'>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: update null_nttime() of -1: -1 is NTTIME_FREEZE</title>
<updated>2021-10-28T18:11:28+00:00</updated>
<author>
<name>Ralph Boehme</name>
<email>slow@samba.org</email>
</author>
<published>2021-10-28T08:18:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=5503bde93bddf3634b183e665773399c110251d4'/>
<id>5503bde93bddf3634b183e665773399c110251d4</id>
<content type='text'>
NTTIME_FREEZE is not a nil sentinel value, instead it implies special, yet
unimplemented semantics. Callers must deal with those values specifically and
null_nttime() must not lie about their nature.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
NTTIME_FREEZE is not a nil sentinel value, instead it implies special, yet
unimplemented semantics. Callers must deal with those values specifically and
null_nttime() must not lie about their nature.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: use NTTIME_FREEZE in a null_nttime() test</title>
<updated>2021-10-28T18:11:28+00:00</updated>
<author>
<name>Ralph Boehme</name>
<email>slow@samba.org</email>
</author>
<published>2021-10-28T08:17:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=e2740e4868f2a49877a86a8666d26226b5657317'/>
<id>e2740e4868f2a49877a86a8666d26226b5657317</id>
<content type='text'>
No change in behaviour.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No change in behaviour.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib: fix null_nttime() tests</title>
<updated>2021-10-28T18:11:28+00:00</updated>
<author>
<name>Ralph Boehme</name>
<email>slow@samba.org</email>
</author>
<published>2021-10-27T15:02:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d84779302cc54a7b84c05ccc458e04b27fd142f4'/>
<id>d84779302cc54a7b84c05ccc458e04b27fd142f4</id>
<content type='text'>
The test was checking -1 twice:

	torture_assert(tctx, null_nttime(-1), "-1");
	torture_assert(tctx, null_nttime(-1), "-1");

The first line was likely supposed to test the value "0".

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test was checking -1 twice:

	torture_assert(tctx, null_nttime(-1), "-1");
	torture_assert(tctx, null_nttime(-1), "-1");

The first line was likely supposed to test the value "0".

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14127

Signed-off-by: Ralph Boehme &lt;slow@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/util: fix timespec normalization</title>
<updated>2021-04-16T09:38:35+00:00</updated>
<author>
<name>Philipp Gesang</name>
<email>philipp.gesang@intra2net.com</email>
</author>
<published>2019-01-17T10:06:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8ff6ad7454d9da1dff91c8b827c54008e83cc150'/>
<id>8ff6ad7454d9da1dff91c8b827c54008e83cc150</id>
<content type='text'>
When fixing up timespec structs, negative values for the ns part
should be taken into account. Also, the range for a valid ns part
is [0, 1000000000), not [0, 1000000000].

Signed-off-by: Philipp Gesang &lt;philipp.gesang@intra2net.com&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When fixing up timespec structs, negative values for the ns part
should be taken into account. Also, the range for a valid ns part
is [0, 1000000000), not [0, 1000000000].

Signed-off-by: Philipp Gesang &lt;philipp.gesang@intra2net.com&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/util/tests: add missing #include "torture/local/proto.h"</title>
<updated>2014-04-02T07:03:44+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2014-02-27T08:08:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8ba775b0a3e22a83bca092114dbb9f345d6ff89f'/>
<id>8ba775b0a3e22a83bca092114dbb9f345d6ff89f</id>
<content type='text'>
Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3-param Remove 'time offset' from smb.conf</title>
<updated>2011-06-11T01:54:44+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2011-06-10T23:49:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=530e4cac2e93177923080daa5ec1bac2c65d269b'/>
<id>530e4cac2e93177923080daa5ec1bac2c65d269b</id>
<content type='text'>
This strange parameter is apparently very rarely used, and it seems to
me that on modern networks, if clients don't have correct clocks and
DST offsets, that many other things (Kerberos) start to fail pretty
quickly, and time and DST tables tend to be internet delivered anyway.

Autobuild-User: Andrew Bartlett &lt;abartlet@samba.org&gt;
Autobuild-Date: Sat Jun 11 03:54:45 CEST 2011 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This strange parameter is apparently very rarely used, and it seems to
me that on modern networks, if clients don't have correct clocks and
DST offsets, that many other things (Kerberos) start to fail pretty
quickly, and time and DST tables tend to be internet delivered anyway.

Autobuild-User: Andrew Bartlett &lt;abartlet@samba.org&gt;
Autobuild-Date: Sat Jun 11 03:54:45 CEST 2011 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>s4-smbtorture: Make test names lowercase and dot-separated.</title>
<updated>2010-12-11T03:16:13+00:00</updated>
<author>
<name>Jelmer Vernooij</name>
<email>jelmer@samba.org</email>
</author>
<published>2010-12-11T02:26:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=35fbc7bbda5851f7172538f79fc79be201f1d521'/>
<id>35fbc7bbda5851f7172538f79fc79be201f1d521</id>
<content type='text'>
This is consistent with the test names used by selftest, should
make the names less confusing and easier to integrate with other tools.

Autobuild-User: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is consistent with the test names used by selftest, should
make the names less confusing and easier to integrate with other tools.

Autobuild-User: Jelmer Vernooij &lt;jelmer@samba.org&gt;
Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "lib/util:tests/time.c - "test_timestring" - fix it on Solaris"</title>
<updated>2010-12-06T11:17:31+00:00</updated>
<author>
<name>Matthias Dieter Wallnöfer</name>
<email>mdw@samba.org</email>
</author>
<published>2010-12-06T10:28:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=bd3e5804a41fdfc8a43bebd95c53e4f0ff1d7a10'/>
<id>bd3e5804a41fdfc8a43bebd95c53e4f0ff1d7a10</id>
<content type='text'>
This reverts commit 654e0102ddb0acaaf45fb55c15818722235fcc9f.
This should better be handled by the replace library.

Autobuild-User: Matthias Dieter Wallnöfer &lt;mdw@samba.org&gt;
Autobuild-Date: Mon Dec  6 12:17:31 CET 2010 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 654e0102ddb0acaaf45fb55c15818722235fcc9f.
This should better be handled by the replace library.

Autobuild-User: Matthias Dieter Wallnöfer &lt;mdw@samba.org&gt;
Autobuild-Date: Mon Dec  6 12:17:31 CET 2010 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/util:tests/time.c - "test_timestring" - fix it on Solaris</title>
<updated>2010-12-05T22:09:13+00:00</updated>
<author>
<name>Matthias Dieter Wallnöfer</name>
<email>mdw@samba.org</email>
</author>
<published>2010-12-05T21:20:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=654e0102ddb0acaaf45fb55c15818722235fcc9f'/>
<id>654e0102ddb0acaaf45fb55c15818722235fcc9f</id>
<content type='text'>
Solaris returns "Thu Jan 01" and not "Thu Jan  1" - therefore proof for
both.

Autobuild-User: Matthias Dieter Wallnöfer &lt;mdw@samba.org&gt;
Autobuild-Date: Sun Dec  5 23:09:13 CET 2010 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Solaris returns "Thu Jan 01" and not "Thu Jan  1" - therefore proof for
both.

Autobuild-User: Matthias Dieter Wallnöfer &lt;mdw@samba.org&gt;
Autobuild-Date: Sun Dec  5 23:09:13 CET 2010 on sn-devel-104
</pre>
</div>
</content>
</entry>
</feed>
