summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-13 09:38:42 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-13 09:55:56 +0200
commit4cff89a585bddcfe833e13824bb6dc06fbd34bca (patch)
tree0e59d14295e1bd8298486047d9523fc20a37593e /source4/torture
parentab9e5047d747115df9519ecb00f24d77d43e98ed (diff)
downloadsamba-4cff89a585bddcfe833e13824bb6dc06fbd34bca.tar.gz
samba-4cff89a585bddcfe833e13824bb6dc06fbd34bca.tar.bz2
samba-4cff89a585bddcfe833e13824bb6dc06fbd34bca.zip
s4:tortore/rpc/spoolss: some compilers don't like .foo.bar = 5
metze
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/spoolss.c70
1 files changed, 42 insertions, 28 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index c9762196e4..78eb5c4475 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -2596,10 +2596,12 @@ static bool test_Forms(struct torture_context *tctx,
WERROR expected_delete_result;
} forms[] = {
{
- .info1.flags = SPOOLSS_FORM_USER,
- .info1.form_name = "testform_user",
- .info1.size = size,
- .info1.area = area,
+ .info1 = {
+ .flags = SPOOLSS_FORM_USER,
+ .form_name = "testform_user",
+ .size = size,
+ .area = area,
+ },
.expected_add_result = WERR_OK,
.expected_delete_result = WERR_OK
},
@@ -2608,51 +2610,63 @@ static bool test_Forms(struct torture_context *tctx,
again - gd
{
- .info1.flags = SPOOLSS_FORM_BUILTIN,
- .info1.form_name = "testform_builtin",
- .info1.size = size,
- .info1.area = area,
+ .info1 = {
+ .flags = SPOOLSS_FORM_BUILTIN,
+ .form_name = "testform_builtin",
+ .size = size,
+ .area = area,
+ },
.expected_add_result = WERR_OK,
.expected_delete_result = WERR_INVALID_PARAM,
},
*/
{
- .info1.flags = SPOOLSS_FORM_PRINTER,
- .info1.form_name = "testform_printer",
- .info1.size = size,
- .info1.area = area,
+ .info1 = {
+ .flags = SPOOLSS_FORM_PRINTER,
+ .form_name = "testform_printer",
+ .size = size,
+ .area = area,
+ },
.expected_add_result = WERR_OK,
.expected_delete_result = WERR_OK
},
{
- .info1.flags = SPOOLSS_FORM_USER,
- .info1.form_name = "Letter",
- .info1.size = size,
- .info1.area = area,
+ .info1 = {
+ .flags = SPOOLSS_FORM_USER,
+ .form_name = "Letter",
+ .size = size,
+ .area = area,
+ },
.expected_add_result = WERR_FILE_EXISTS,
.expected_delete_result = WERR_INVALID_PARAM
},
{
- .info1.flags = SPOOLSS_FORM_BUILTIN,
- .info1.form_name = "Letter",
- .info1.size = size,
- .info1.area = area,
+ .info1 = {
+ .flags = SPOOLSS_FORM_BUILTIN,
+ .form_name = "Letter",
+ .size = size,
+ .area = area,
+ },
.expected_add_result = WERR_FILE_EXISTS,
.expected_delete_result = WERR_INVALID_PARAM
},
{
- .info1.flags = SPOOLSS_FORM_PRINTER,
- .info1.form_name = "Letter",
- .info1.size = size,
- .info1.area = area,
+ .info1 = {
+ .flags = SPOOLSS_FORM_PRINTER,
+ .form_name = "Letter",
+ .size = size,
+ .area = area,
+ },
.expected_add_result = WERR_FILE_EXISTS,
.expected_delete_result = WERR_INVALID_PARAM
},
{
- .info1.flags = 12345,
- .info1.form_name = "invalid_flags",
- .info1.size = size,
- .info1.area = area,
+ .info1 = {
+ .flags = 12345,
+ .form_name = "invalid_flags",
+ .size = size,
+ .area = area,
+ },
.expected_add_result = WERR_INVALID_PARAM,
.expected_delete_result = WERR_INVALID_FORM_NAME
}