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

« back to all changes in this revision

Viewing changes to src/tests/uniquemucroomunique/uniquemucroomunique_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:
24
24
    if( !t || t->xml() != "<unique xmlns='" + XMLNS_MUC_UNIQUE + "'/>" )
25
25
    {
26
26
      ++fail;
27
 
      printf( "test '%s' failed\n", name.c_str() );
 
27
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
28
28
    }
29
29
    delete t;
30
30
  }
42
42
       || uq.name() != "foo" )
43
43
    {
44
44
      ++fail;
45
 
      printf( "test '%s' failed\n", name.c_str() );
 
45
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
46
46
    }
47
47
    delete t;
48
48
  }
59
59
  if( se == 0 )
60
60
  {
61
61
    ++fail;
62
 
    printf( "test '%s' failed\n", name.c_str() );
 
62
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
63
63
  }
64
64
  delete f;
65
65
 
68
68
  if( !fail )
69
69
    printf( "OK\n" );
70
70
  else
71
 
    printf( "%d test(s) failed\n", fail );
 
71
    fprintf( stderr, "%d test(s) failed\n", fail );
72
72
 
73
73
  return fail;
74
74
}