Lines Matching refs:tx
79 store::transaction tx = backend.start();
84 tx.put_result(result, 312, start_time, end_time);
85 tx.commit();
114 store::transaction tx = backend.start();
117 tx.commit();
134 store::transaction tx = backend.start();
135 tx.put_context(context);
140 ATF_REQUIRE_THROW(store::error, tx.commit());
145 store::transaction tx = backend.start();
146 tx.put_context(context);
147 tx.commit();
160 store::transaction tx = backend.start();
163 tx.rollback();
188 store::transaction tx = backend.start();
189 const int64_t context1_id = tx.put_context(context1);
190 const int64_t context2_id = tx.put_context(context2);
191 id1 = tx.put_action(exp_action1, context1_id);
192 id3 = tx.put_action(exp_action3, context1_id);
193 id2 = tx.put_action(exp_action2, context2_id);
194 tx.commit();
197 store::transaction tx = backend.start();
198 const engine::action action1 = tx.get_action(id1);
199 const engine::action action2 = tx.get_action(id2);
200 const engine::action action3 = tx.get_action(id3);
201 tx.rollback();
220 store::transaction tx = backend.start();
222 tx.get_action(523));
239 store::transaction tx = backend.start();
241 tx.get_action(123));
254 store::transaction tx = backend.start();
257 const int64_t context_id = tx.put_context(context);
260 ATF_REQUIRE_THROW(store::error, tx.put_action(action, context_id));
261 tx.commit();
274 store::transaction tx = backend.start();
275 store::results_iterator iter = tx.get_action_results(1);
290 store::transaction tx = backend.start();
295 const int64_t context_id = tx.put_context(context);
296 const int64_t action_id = tx.put_action(action, context_id);
297 const int64_t action2_id = tx.put_action(action, context_id);
320 const int64_t tp_id = tx.put_test_program(test_program_1, action_id);
321 const int64_t tc_id = tx.put_test_case(*test_case_1, tp_id);
323 tx.put_test_case_file("__STDOUT__", fs::path("prog1.out"), tc_id);
324 tx.put_test_case_file("unused.txt", fs::path("unused.txt"), tc_id);
325 tx.put_result(result_1, tc_id, start_time1, end_time1);
327 const int64_t tp2_id = tx.put_test_program(test_program_1, action2_id);
328 const int64_t tc2_id = tx.put_test_case(*test_case_1, tp2_id);
329 tx.put_test_case_file("__STDOUT__", fs::path("unused.txt"), tc2_id);
330 tx.put_test_case_file("__STDERR__", fs::path("unused.txt"), tc2_id);
331 tx.put_result(result_1, tc2_id, start_time1, end_time1);
345 const int64_t tp_id = tx.put_test_program(test_program_2, action_id);
346 const int64_t tc_id = tx.put_test_case(*test_case_2, tp_id);
348 tx.put_test_case_file("__STDERR__", fs::path("prog2.err"), tc_id);
349 tx.put_test_case_file("unused.txt", fs::path("unused.txt"), tc_id);
350 tx.put_result(result_2, tc_id, start_time2, end_time2);
353 tx.commit();
393 store::transaction tx = backend.start();
394 const int64_t context1_id = tx.put_context(context1);
395 const int64_t context2_id = tx.put_context(context2);
396 (void)tx.put_action(exp_action1, context1_id);
397 id2 = tx.put_action(exp_action2, context2_id);
398 tx.commit();
401 store::transaction tx = backend.start();
403 tx.get_latest_action();
404 tx.rollback();
421 store::transaction tx = backend.start();
422 ATF_REQUIRE_THROW_RE(store::error, "No actions", tx.get_latest_action());
439 store::transaction tx = backend.start();
441 tx.get_latest_action());
465 store::transaction tx = backend.start();
466 id1 = tx.put_context(exp_context1);
467 id3 = tx.put_context(exp_context3);
468 id2 = tx.put_context(exp_context2);
469 tx.commit();
472 store::transaction tx = backend.start();
473 const engine::context context1 = tx.get_context(id1);
474 const engine::context context2 = tx.get_context(id2);
475 const engine::context context3 = tx.get_context(id3);
476 tx.rollback();
495 store::transaction tx = backend.start();
497 tx.get_context(456));
517 store::transaction tx = backend.start();
519 tx.get_context(78));
556 store::transaction tx = backend.start();
558 tx.get_context(10));
560 tx.get_context(20));
574 store::transaction tx = backend.start();
577 ATF_REQUIRE_THROW(store::error, tx.put_context(context));
578 tx.commit();
600 store::transaction tx = backend.start();
601 const int64_t test_program_id = tx.put_test_program(test_program, 15);
602 tx.commit();
635 store::transaction tx = backend.start();
636 ATF_REQUIRE_THROW(store::error, tx.put_test_program(test_program, -1));
637 tx.commit();
690 store::transaction tx = backend.start();
691 test_program_id = tx.put_test_program(test_program, 15);
692 tx.put_test_case(*test_case1, test_program_id);
693 tx.put_test_case(*test_case2, test_program_id);
694 tx.commit();
697 store::transaction tx = backend.start();
720 store::transaction tx = backend.start();
721 ATF_REQUIRE_THROW(store::error, tx.put_test_case(test_case, -1));
722 tx.commit();
738 store::transaction tx = backend.start();
739 const optional< int64_t > file_id = tx.put_test_case_file(
741 tx.commit();
764 store::transaction tx = backend.start();
765 const optional< int64_t > file_id = tx.put_test_case_file(
767 tx.commit();
793 store::transaction tx = backend.start();
795 tx.put_test_case_file("foo", fs::path("missing"), 1L));
796 tx.commit();
881 store::transaction tx = backend.start();
883 ATF_REQUIRE_THROW(store::error, tx.put_result(result, -1, zero, zero));
884 tx.commit();