mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r24674: Make sure results are always on a new line, fix typo in test name.
This commit is contained in:
parent
9296604150
commit
40c1635b39
@ -46,6 +46,22 @@ static bool test_get_predefined(struct torture_context *tctx,
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test obtaining a predefined key.
|
||||
*/
|
||||
static bool test_get_predefined_unknown(struct torture_context *tctx,
|
||||
const void *_data)
|
||||
{
|
||||
const struct registry_context *rctx = _data;
|
||||
struct registry_key *root;
|
||||
WERROR error;
|
||||
|
||||
error = reg_get_predefined_key(rctx, 1337, &root);
|
||||
torture_assert_werr_equal(tctx, error, WERR_BADFILE,
|
||||
"getting predefined key failed");
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test creating a new subkey
|
||||
*/
|
||||
@ -200,6 +216,9 @@ static bool test_flush_key(struct torture_context *tctx, const void *_data)
|
||||
error = reg_key_flush(subkey);
|
||||
torture_assert_werr_ok(tctx, error, "flush key");
|
||||
|
||||
torture_assert_werr_equal(tctx, reg_key_flush(NULL),
|
||||
WERR_INVALID_PARAM, "flush key");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -457,6 +476,8 @@ static void tcase_add_tests(struct torture_tcase *tcase)
|
||||
torture_tcase_add_simple_test(tcase, "list_subkeys", test_list_subkeys);
|
||||
torture_tcase_add_simple_test(tcase, "get_predefined_key",
|
||||
test_get_predefined);
|
||||
torture_tcase_add_simple_test(tcase, "get_predefined_key",
|
||||
test_get_predefined_unknown);
|
||||
torture_tcase_add_simple_test(tcase, "create_key", test_create_subkey);
|
||||
torture_tcase_add_simple_test(tcase, "create_key",
|
||||
test_create_nested_subkey);
|
||||
|
@ -743,7 +743,7 @@ static int test_strtoull(void)
|
||||
TEST_STRTOULL("-02000000000000000000000",8, 18446744073709551615LLU, 24, ERANGE);
|
||||
TEST_STRTOULL("-2000000000000000000000",8, 18446744073709551615LLU, 23, ERANGE);
|
||||
|
||||
printf("success: strtuoll\n");
|
||||
printf("success: strtoull\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -599,6 +599,8 @@ static BOOL rw_torture2(struct torture_context *tctx,
|
||||
torture_assert_ntstatus_ok(tctx, smbcli_unlink(c1->tree, lockfname),
|
||||
talloc_asprintf(tctx, "unlink failed (%s)", smbcli_errstr(c1->tree)));
|
||||
|
||||
torture_comment(tctx, "\n");
|
||||
|
||||
return correct;
|
||||
}
|
||||
|
||||
|
@ -393,9 +393,10 @@ BOOL torture_bench_lock(struct torture_context *torture)
|
||||
|
||||
smbcli_deltree(state[0].tree, BASEDIR);
|
||||
talloc_free(mem_ctx);
|
||||
printf("\n");
|
||||
return ret;
|
||||
|
||||
failed:
|
||||
talloc_free(mem_ctx);
|
||||
return False;
|
||||
return false;
|
||||
}
|
||||
|
@ -287,6 +287,7 @@ static bool test_sleep(struct torture_context *tctx,
|
||||
}
|
||||
}
|
||||
}
|
||||
printf("\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user