~ubuntu-branches/ubuntu/vivid/gloox/vivid-proposed

« back to all changes in this revision

Viewing changes to src/tests/receipt/receipt_test.cpp

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2014-03-16 17:34:43 UTC
  • mfrom: (12.1.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20140316173443-4s177dovzaz5dm8o
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    if( t )
24
24
    {
25
25
      ++fail;
26
 
      printf( "test '%s' failed\n", name.c_str() );
 
26
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
27
27
    }
28
28
    delete t;
29
29
    t = 0;
37
37
    if( t->xml() != "<request xmlns='"+ XMLNS_RECEIPTS + "'/>" )
38
38
    {
39
39
      ++fail;
40
 
      printf( "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
 
40
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
41
41
    }
42
42
    delete t;
43
43
    t = 0;
51
51
    if( t->xml() != "<received xmlns='"+ XMLNS_RECEIPTS + "'/>" )
52
52
    {
53
53
      ++fail;
54
 
      printf( "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
 
54
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
55
55
    }
56
56
    delete t;
57
57
    t = 0;
70
70
    if( se == 0 || se->rcpt() != Receipt::Request )
71
71
    {
72
72
      ++fail;
73
 
      printf( "test '%s' failed\n", name.c_str() );
 
73
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
74
74
    }
75
75
    delete f;
76
76
  }
86
86
    if( se == 0 || se->rcpt() != Receipt::Received )
87
87
    {
88
88
      ++fail;
89
 
      printf( "test '%s' failed\n", name.c_str() );
 
89
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
90
90
    }
91
91
    delete f;
92
92
  }
99
99
  }
100
100
  else
101
101
  {
102
 
    printf( "%d test(s) failed\n", fail );
 
102
    fprintf( stderr, "%d test(s) failed\n", fail );
103
103
    return 1;
104
104
  }
105
105