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

« back to all changes in this revision

Viewing changes to src/tests/search/search_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:
175
175
  if( !t.result() )
176
176
  {
177
177
    ++fail;
178
 
    printf( "test '%s' failed\n", name.c_str() );
 
178
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
179
179
  }
180
180
 
181
181
  // -------
193
193
    if( !t.result() )
194
194
    {
195
195
      ++fail;
196
 
      printf( "test '%s' failed\n", name.c_str() );
 
196
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
197
197
    }
198
198
  }
199
199
 
205
205
  if( !t.result() )
206
206
  {
207
207
    ++fail;
208
 
    printf( "test '%s' failed\n", name.c_str() );
 
208
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
209
209
  }
210
210
 
211
211
  // -------
233
233
    if( !t.result() )
234
234
    {
235
235
      ++fail;
236
 
      printf( "test '%s' failed\n", name.c_str() );
 
236
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
237
237
    }
238
238
    delete q;
239
239
  }
247
247
    if( !t.result() )
248
248
    {
249
249
      ++fail;
250
 
      printf( "test '%s' failed\n", name.c_str() );
 
250
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
251
251
    }
252
252
  }
253
253
 
262
262
    if( !t.result() )
263
263
    {
264
264
      ++fail;
265
 
      printf( "test '%s' failed\n", name.c_str() );
 
265
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
266
266
    }
267
267
  }
268
268
 
273
273
  if( !t.result() )
274
274
  {
275
275
    ++fail;
276
 
    printf( "test '%s' failed\n", name.c_str() );
 
276
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
277
277
  }
278
278
 
279
279
  // -------
287
287
    if( !t.result() )
288
288
    {
289
289
      ++fail;
290
 
      printf( "test '%s' failed\n", name.c_str() );
 
290
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
291
291
    }
292
292
  }
293
293
 
299
299
  if( !t.result() )
300
300
  {
301
301
    ++fail;
302
 
    printf( "test '%s' failed\n", name.c_str() );
 
302
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
303
303
  }
304
304
 
305
305
  // -------
313
313
    if( !t.result() )
314
314
    {
315
315
      ++fail;
316
 
      printf( "test '%s' failed\n", name.c_str() );
 
316
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
317
317
    }
318
318
    }
319
319
 
330
330
  }
331
331
  else
332
332
  {
333
 
    printf( "Search: %d test(s) failed\n", fail );
 
333
    fprintf( stderr, "Search: %d test(s) failed\n", fail );
334
334
    return 1;
335
335
  }
336
336