~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to testsuite/libamf.all/test_lc.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Sindhudweep Narayan Sarkar
  • Date: 2009-10-07 00:06:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091007000610-mj9rwqe774gizn1j
Tags: 0.8.6-0ubuntu1
new upstream release 0.8.6 (LP: #435897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
    // Read a premade .sol file
106
106
//    string filespec = "localhost:test_lc"; 
107
 
    load_data();
108
 
    test_read();
 
107
//    load_data();
 
108
//    test_read();
 
109
   system("ipcs");
109
110
    test_data();
110
 
    test_listen();
 
111
   system("ipcs");
 
112
//    test_listen();
111
113
    
112
114
//     // Write a .sol file
113
115
//     filespec = "lc_name1";
201
203
void
202
204
test_data()
203
205
{
204
 
    LcShm lc;
 
206
    LcShm lcs;
 
207
//  LcShm lcs=LcShm();
205
208
    char *shmaddr;
206
209
 
207
 
    string con1 = "localhost:lc_reply";
208
 
    if (lc.connect(con1)) {
 
210
    const string con1 = "localhost:WeBuildTheseOOOOOOOOOOOOOOOOO";
 
211
    if (lcs.connect(con1)) {
209
212
        runtest.pass("LcShm::connect(localhost:lc_reply)");
210
213
    } else {
211
214
        runtest.fail("LcShm::connect(localhost:lc_reply)");
212
215
    }
213
216
 
214
 
    shmaddr = lc.getAddr();     // for gdb
 
217
    shmaddr = lcs.getAddr();     // for gdb
215
218
 
216
219
    Element *el;
217
220
    vector<amf::Element *> els;
245
248
    els.push_back(el);
246
249
 
247
250
    // Send the AMF objects
248
 
//    lc.send(con1, "localhost", els);
249
 
 
 
251
    const std::string localS="localhost";
 
252
  lcs.send(con1, localS, els);
 
253
//    system("ipcs");
 
254
//    system("dumpshm -i");
 
255
    sleep(3);
250
256
    delete el;
251
257
}
252
258
 
569
575
 
570
576
#else
571
577
 
572
 
int
573
 
main(int /*argc*/, char /* *argv[]*/)
 
578
int main(int /*argc*/, char **/* argv[]*/)
574
579
{
575
580
  // nop
576
581
  return 0;