]> rtime.felk.cvut.cz Git - frescor/frsh.git/blob - frsh_api/tests/trans_nego2.c
93ac5d980bf32ee1031ccb48e0d5f839389d0db3
[frescor/frsh.git] / frsh_api / tests / trans_nego2.c
1 #include <frsh.h>
2 #include <wvtest.h>
3 #include <res_dummy.h>
4 #include "trans_nego.h"
5
6 WVTEST_MAIN("transaction negotiation - remote part")
7 {
8         frsh_transaction_t t;
9         frsh_vres_id_t vres3;
10         
11         WVFRSH(frsh_init());
12         WVFRSH(fra_dummy_init_and_activate_id(1));
13 #if 0
14         WVFRSH(frsh_transaction_wait_for_name(&t, "test"));
15         WVPASS(frsh_transaction_alloc_vres(&t, TEST_CONTRACT_2, &vres3) ==
16                FRES_ERR_VRES_ALREADY_ALLOCATED);
17         WVFRSH(frsh_transaction_alloc_vres(&t, TEST_CONTRACT_3, &vres3));
18 #endif  
19         frsh_destroy();
20 }