1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s4:smbtorture: also test for date >> UINT32_MAX in timestamps test

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2019-12-06 10:27:22 +00:00 committed by Jeremy Allison
parent 9c81aa9dab
commit 5b8b9cd1c4

View File

@ -235,6 +235,20 @@ done:
return ret;
}
static bool test_time_t_100000000000(struct torture_context *tctx,
struct smb2_tree *tree)
{
return test_time_t(tctx, tree, "test_time_t_100000000000.txt",
100000000000 /* >> INT32_MAX */);
}
static bool test_time_t_10000000000(struct torture_context *tctx,
struct smb2_tree *tree)
{
return test_time_t(tctx, tree, "test_time_t_10000000000.txt",
10000000000 /* >> INT32_MAX */);
}
static bool test_time_t_4294967295(struct torture_context *tctx,
struct smb2_tree *tree)
{
@ -280,6 +294,8 @@ struct torture_suite *torture_smb2_timestamps_init(TALLOC_CTX *ctx)
{
struct torture_suite *suite = torture_suite_create(ctx, "timestamps");
torture_suite_add_1smb2_test(suite, "time_t_100000000000", test_time_t_100000000000);
torture_suite_add_1smb2_test(suite, "time_t_10000000000", test_time_t_10000000000);
torture_suite_add_1smb2_test(suite, "time_t_4294967295", test_time_t_4294967295);
torture_suite_add_1smb2_test(suite, "time_t_1", test_time_t_1);
torture_suite_add_1smb2_test(suite, "time_t_0", test_time_t_0);