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

« back to all changes in this revision

Viewing changes to src/tests/registrationquery/registrationquery_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:
61
61
    if( !t || t->xml() != "<query xmlns='" + XMLNS_REGISTER + "'/>" )
62
62
    {
63
63
      ++fail;
64
 
      printf( "test '%s' failed\n", name.c_str() );
 
64
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
65
65
    }
66
66
    delete t;
67
67
  }
88
88
                             | Registration::FieldEmail ) )
89
89
    {
90
90
      ++fail;
91
 
      printf( "test '%s' failed\n", name.c_str() );
 
91
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
92
92
    }
93
93
    delete t;
94
94
    delete d;
111
111
         "</query>" )
112
112
    {
113
113
      ++fail;
114
 
      printf( "test '%s' failed\n", name.c_str() );
 
114
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
115
115
    }
116
116
    delete t;
117
117
  }
132
132
         || !sq.form() )
133
133
    {
134
134
      ++fail;
135
 
      printf( "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
 
135
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
136
136
    }
137
137
    delete t;
138
138
    delete d;
149
149
       "</query>" )
150
150
    {
151
151
      ++fail;
152
 
      printf( "test '%s' failed\n", name.c_str() );
 
152
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
153
153
    }
154
154
    delete t;
155
155
  }
164
164
         "</query>" )
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 t;
170
170
  }
183
183
         "</query>" )
184
184
    {
185
185
      ++fail;
186
 
      printf( "test '%s' failed\n", name.c_str() );
 
186
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
187
187
    }
188
188
    delete t;
189
189
  }
209
209
         || sq.oob()->url() != "http://camaya.net/gloox" )
210
210
    {
211
211
      ++fail;
212
 
      printf( "test '%s' failed\n", name.c_str() );
 
212
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
213
213
    }
214
214
    delete t;
215
215
    delete d;
230
230
  if( se == 0 )
231
231
  {
232
232
    ++fail;
233
 
    printf( "test '%s' failed\n", name.c_str() );
 
233
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
234
234
  }
235
235
  delete f;
236
236
 
244
244
  }
245
245
  else
246
246
  {
247
 
    printf( "%d test(s) failed\n", fail );
 
247
    fprintf( stderr, "%d test(s) failed\n", fail );
248
248
    return 1;
249
249
  }
250
250