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

« back to all changes in this revision

Viewing changes to src/tests/privacymanagerquery/privacymanagerquery_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:
64
64
    if( t )
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 t;
70
70
    t = 0;
80
80
         || ibb.type() != InBandBytestream::IBBOpen)
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 t;
86
86
    t = 0;
98
98
         || ibb.type() != InBandBytestream::IBBData )
99
99
    {
100
100
      ++fail;
101
 
      printf( "test '%s' failed\n", name.c_str() );
 
101
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
102
102
    }
103
103
    delete t;
104
104
    t = 0;
114
114
         || ibb.type() != InBandBytestream::IBBClose )
115
115
    {
116
116
      ++fail;
117
 
      printf( "test '%s' failed\n", name.c_str() );
 
117
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
118
118
    }
119
119
    delete t;
120
120
    t = 0;
133
133
        || !ibb.data().empty() || ibb.type() != InBandBytestream::IBBOpen )
134
134
    {
135
135
      ++fail;
136
 
      printf( "test '%s' failed\n", name.c_str() );
 
136
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
137
137
    }
138
138
    delete t;
139
139
    t = 0;
154
154
        || ibb.blocksize() != 0 || ibb.type() != InBandBytestream::IBBData )
155
155
    {
156
156
      ++fail;
157
 
      printf( "test '%s' failed\n", name.c_str() );
 
157
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
158
158
    }
159
159
    delete t;
160
160
    t = 0;
174
174
         || ibb.type() != InBandBytestream::IBBClose )
175
175
    {
176
176
      ++fail;
177
 
      printf( "test '%s' failed\n", name.c_str() );
 
177
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
178
178
    }
179
179
    delete t;
180
180
    t = 0;
194
194
    if( se == 0 )
195
195
    {
196
196
      ++fail;
197
 
      printf( "test '%s' failed\n", name.c_str() );
 
197
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
198
198
    }
199
199
    delete f;
200
200
  }
210
210
    if( se == 0 )
211
211
    {
212
212
      ++fail;
213
 
      printf( "test '%s' failed\n", name.c_str() );
 
213
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
214
214
    }
215
215
    delete f;
216
216
  }
226
226
    if( se == 0 )
227
227
    {
228
228
      ++fail;
229
 
      printf( "test '%s' failed\n", name.c_str() );
 
229
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
230
230
    }
231
231
    delete f;
232
232
  }
238
238
  }
239
239
  else
240
240
  {
241
 
    printf( "InBandBytestream::IBB: %d test(s) failed\n", fail );
 
241
    fprintf( stderr, "InBandBytestream::IBB: %d test(s) failed\n", fail );
242
242
    return 1;
243
243
  }
244
244