• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/samba-3.5.8/source4/lib/registry/tests/

Lines Matching refs:error

40 	WERROR error;
43 error = reg_generate_diff(td->r1_ctx, td->r2_ctx,
46 torture_assert_werr_ok(tctx, error, "reg_generate_diff");
58 WERROR error;
62 error = reg_diff_load(td->filename, iconv_convenience, callbacks, data);
63 torture_assert_werr_ok(tctx, error, "reg_diff_load");
72 WERROR error;
74 error = reg_diff_apply(td->r1_ctx, lp_iconv_convenience(tctx->lp_ctx), td->filename);
75 torture_assert_werr_ok(tctx, error, "reg_diff_apply");
77 error = td->r1_ctx->ops->get_predefined_key(td->r1_ctx, HKEY_LOCAL_MACHINE, &key);
78 torture_assert_werr_ok(tctx, error, "Opening HKEY_LOCAL_MACHINE failed");
80 /* If this generates an error it could be that the apply doesn't work,
82 error = td->r1_ctx->ops->open_key(td->r1_ctx, key, "Software", &key);
83 torture_assert_werr_ok(tctx, error, "Opening HKLM\\Software failed");
84 error = td->r1_ctx->ops->open_key(td->r1_ctx, key, "Microsoft", &key);
85 torture_assert_werr_ok(tctx, error, "Opening HKLM\\Software\\Microsoft failed");
86 error = td->r1_ctx->ops->open_key(td->r1_ctx, key, "Windows", &key);
87 torture_assert_werr_ok(tctx, error, "Opening HKLM\\..\\Microsoft\\Windows failed");
88 error = td->r1_ctx->ops->open_key(td->r1_ctx, key, "CurrentVersion", &key);
89 torture_assert_werr_ok(tctx, error, "Opening HKLM\\..\\Windows\\CurrentVersion failed");
90 error = td->r1_ctx->ops->open_key(td->r1_ctx, key, "Policies", &key);
91 torture_assert_werr_ok(tctx, error, "Opening HKLM\\..\\CurrentVersion\\Policies failed");
92 error = td->r1_ctx->ops->open_key(td->r1_ctx, key, "Explorer", &key);
93 torture_assert_werr_ok(tctx, error, "Opening HKLM\\..\\Policies\\Explorer failed");
156 WERROR error;
168 error = reg_open_local(tctx, &r1_ctx);
169 torture_assert_werr_ok(tctx, error, "Opening registry 1 for patch tests failed");
171 error = reg_open_local(tctx, &r2_ctx);
172 torture_assert_werr_ok(tctx, error, "Opening registry 2 for patch tests failed");
180 error = reg_open_ldb_file(tctx, filename, NULL, NULL, tctx->ev, tctx->lp_ctx, &r1_hklm);
181 torture_assert_werr_ok(tctx, error, "Opening local machine file failed");
183 error = reg_mount_hive(r1_ctx, r1_hklm, HKEY_LOCAL_MACHINE, NULL);
184 torture_assert_werr_ok(tctx, error, "Mounting hive failed");
187 error = reg_open_ldb_file(tctx, filename, NULL, NULL, tctx->ev, tctx->lp_ctx, &r1_hkcu);
188 torture_assert_werr_ok(tctx, error, "Opening current user file failed");
190 error = reg_mount_hive(r1_ctx, r1_hkcu, HKEY_CURRENT_USER, NULL);
191 torture_assert_werr_ok(tctx, error, "Mounting hive failed");
195 error = reg_open_ldb_file(tctx, filename, NULL, NULL, tctx->ev, tctx->lp_ctx, &r2_hklm);
196 torture_assert_werr_ok(tctx, error, "Opening local machine file failed");
198 error = reg_mount_hive(r2_ctx, r2_hklm, HKEY_LOCAL_MACHINE, NULL);
199 torture_assert_werr_ok(tctx, error, "Mounting hive failed");
202 error = reg_open_ldb_file(tctx, filename, NULL, NULL, tctx->ev, tctx->lp_ctx, &r2_hkcu);
203 torture_assert_werr_ok(tctx, error, "Opening current user file failed");
205 error = reg_mount_hive(r2_ctx, r2_hkcu, HKEY_CURRENT_USER, NULL);
206 torture_assert_werr_ok(tctx, error, "Mounting hive failed");
208 error = r1_ctx->ops->get_predefined_key(r1_ctx, HKEY_CURRENT_USER, &key);
209 torture_assert_werr_ok(tctx, error, "Opening HKEY_CURRENT_USER failed");
210 error = r1_ctx->ops->create_key(r1_ctx, key, "Network", NULL, NULL, &newkey);
211 torture_assert_werr_ok(tctx, error, "Opening HKCU\\Network failed");
212 error = r1_ctx->ops->create_key(r1_ctx, newkey, "L", NULL, NULL, &newkey);
213 torture_assert_werr_ok(tctx, error, "Opening HKCU\\Network\\L failed");
215 error = r2_ctx->ops->get_predefined_key(r2_ctx, HKEY_LOCAL_MACHINE, &key);
216 torture_assert_werr_ok(tctx, error, "Opening HKEY_LOCAL_MACHINE failed");
217 error = r2_ctx->ops->create_key(r2_ctx, key, "Software", NULL, NULL, &newkey);
218 torture_assert_werr_ok(tctx, error, "Creating HKLM\\Sofware failed");
219 error = r2_ctx->ops->create_key(r2_ctx, newkey, "Microsoft", NULL, NULL, &newkey);
220 torture_assert_werr_ok(tctx, error, "Creating HKLM\\Software\\Microsoft failed");
221 error = r2_ctx->ops->create_key(r2_ctx, newkey, "Windows", NULL, NULL, &newkey);
222 torture_assert_werr_ok(tctx, error, "Creating HKLM\\Software\\Microsoft\\Windows failed");
223 error = r2_ctx->ops->create_key(r2_ctx, newkey, "CurrentVersion", NULL, NULL, &newkey);
224 torture_assert_werr_ok(tctx, error, "Creating HKLM\\..\\Windows\\CurrentVersion failed");
225 error = r2_ctx->ops->create_key(r2_ctx, newkey, "Policies", NULL, NULL, &newkey);
226 torture_assert_werr_ok(tctx, error, "Creating HKLM\\..\\CurrentVersion\\Policies failed");
227 error = r2_ctx->ops->create_key(r2_ctx, newkey, "Explorer", NULL, NULL, &newkey);
228 torture_assert_werr_ok(tctx, error, "Creating HKLM\\..\\Policies\\Explorer failed");
250 WERROR error;
258 error = reg_preg_diff_save(tctx, td->filename, ic, &td->callbacks, &td->callback_data);
259 torture_assert_werr_ok(tctx, error, "reg_preg_diff_save");
268 WERROR error;
276 error = reg_dotreg_diff_save(tctx, td->filename, ic, &td->callbacks, &td->callback_data);
277 torture_assert_werr_ok(tctx, error, "reg_dotreg_diff_save");