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

« back to all changes in this revision

Viewing changes to src/tests/nonsaslauthquery/nonsaslauthquery_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:
89
89
                          "<username>user</username></query>" )
90
90
    {
91
91
      ++fail;
92
 
      printf( "test '%s' failed\n", name.c_str() );
 
92
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
93
93
    }
94
94
    delete t;
95
95
    t = 0;
113
113
                          "</query>" )
114
114
    {
115
115
      ++fail;
116
 
      printf( "test '%s' failed\n", name.c_str() );
 
116
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
117
117
    }
118
118
    delete nq;
119
119
    delete q;
143
143
         "</query>" )
144
144
    {
145
145
      ++fail;
146
 
      printf( "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
 
146
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
147
147
    }
148
148
    delete nq;
149
149
    delete q;
164
164
    if( se == 0 )
165
165
    {
166
166
      ++fail;
167
 
      printf( "test '%s' failed\n", name.c_str() );
 
167
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
168
168
    }
169
169
    delete f;
170
170
  }
177
177
  }
178
178
  else
179
179
  {
180
 
    printf( "NonSaslAuth::Query: %d test(s) failed\n", fail );
 
180
    fprintf( stderr, "NonSaslAuth::Query: %d test(s) failed\n", fail );
181
181
    return 1;
182
182
  }
183
183