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

« back to all changes in this revision

Viewing changes to src/tests/delayeddelivery/delayeddelivery_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:
25
25
  if( d->tag() != 0 )
26
26
  {
27
27
    ++fail;
28
 
    printf( "test '%s' failed\n", name.c_str() );
 
28
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
29
29
  }
30
30
  delete d;
31
31
  d = 0;
36
36
  if( d->reason() != "reason" || d->stamp() != "invalidstamp" || d->from() != j )
37
37
  {
38
38
    ++fail;
39
 
    printf( "test '%s' failed\n", name.c_str() );
 
39
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
40
40
  }
41
41
  delete d;
42
42
  d = 0;
51
51
       || t->cdata() != "reason" )
52
52
  {
53
53
    ++fail;
54
 
    printf( "test '%s' failed\n", name.c_str() );
 
54
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
55
55
  }
56
56
  delete d;
57
57
  delete t;
64
64
  if( d->reason() != "reason" || d->stamp() != "invalidstamp" || d->from() != j )
65
65
  {
66
66
    ++fail;
67
 
    printf( "test '%s' failed\n", name.c_str() );
 
67
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
68
68
  }
69
69
  delete d;
70
70
  delete t;
80
80
       || t->cdata() != "reason" )
81
81
  {
82
82
    ++fail;
83
 
    printf( "test '%s' failed\n", name.c_str() );
 
83
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
84
84
  }
85
85
  delete d;
86
86
  delete t;
101
101
  }
102
102
  else
103
103
  {
104
 
    printf( "DelayedDelivery: %d test(s) failed\n", fail );
 
104
    fprintf( stderr, "DelayedDelivery: %d test(s) failed\n", fail );
105
105
    return 1;
106
106
  }
107
107