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

« back to all changes in this revision

Viewing changes to src/tests/simanagersi/simanagersi_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:
76
76
    if( t )
77
77
    {
78
78
      ++fail;
79
 
      printf( "test '%s' failed\n", name.c_str() );
 
79
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
80
80
    }
81
81
    delete t;
82
82
    t = 0;
97
97
        || !t->hasChild( "bar" ) )
98
98
    {
99
99
      ++fail;
100
 
      printf( "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
 
100
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
101
101
    }
102
102
    delete t;
103
103
    t = 0;
121
121
    if( !t || *t != *s )
122
122
    {
123
123
      ++fail;
124
 
      printf( "test '%s' failed:\n%s\n%s\n", name.c_str(), t->xml().c_str(), s->xml().c_str() );
 
124
      fprintf( stderr, "test '%s' failed:\n%s\n%s\n", name.c_str(), t->xml().c_str(), s->xml().c_str() );
125
125
    }
126
126
    delete s;
127
127
    delete t;
141
141
    if( se == 0 )
142
142
    {
143
143
      ++fail;
144
 
      printf( "test '%s' failed\n", name.c_str() );
 
144
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
145
145
    }
146
146
    delete f;
147
147
  }
155
155
  }
156
156
  else
157
157
  {
158
 
    printf( "%d test(s) failed\n", fail );
 
158
    fprintf( stderr, "%d test(s) failed\n", fail );
159
159
    return 1;
160
160
  }
161
161