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

« back to all changes in this revision

Viewing changes to src/tests/subscription/subscription_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:
30
30
      || i->status() != "the status" )
31
31
  {
32
32
    ++fail;
33
 
    printf( "test '%s' failed\n", name.c_str() );
 
33
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
34
34
  }
35
35
  delete i;
36
36
  i = 0;
44
44
      || i->status() != "the status" )
45
45
  {
46
46
    ++fail;
47
 
    printf( "test '%s' failed\n", name.c_str() );
 
47
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
48
48
  }
49
49
  delete i;
50
50
  i = 0;
58
58
      || i->status() != "the status" )
59
59
  {
60
60
    ++fail;
61
 
    printf( "test '%s' failed\n", name.c_str() );
 
61
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
62
62
  }
63
63
  delete i;
64
64
  i = 0;
72
72
      || i->status() != "the status" )
73
73
  {
74
74
    ++fail;
75
 
    printf( "test '%s' failed\n", name.c_str() );
 
75
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
76
76
  }
77
77
  delete i;
78
78
  i = 0;
90
90
        || !i->hasChild( "status", "xml:lang", "the xmllang" ) )
91
91
    {
92
92
      ++fail;
93
 
      printf( "test '%s' failed: %s\n", name.c_str(), i->xml().c_str() );
 
93
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), i->xml().c_str() );
94
94
    }
95
95
    delete i;
96
96
  }
108
108
        || !i->hasChild( "status", "xml:lang", "the xmllang" ) )
109
109
    {
110
110
      ++fail;
111
 
      printf( "test '%s' failed: %s\n", name.c_str(), i->xml().c_str() );
 
111
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), i->xml().c_str() );
112
112
    }
113
113
    delete i;
114
114
  }
126
126
        || !i->hasChild( "status", "xml:lang", "the xmllang" ) )
127
127
    {
128
128
      ++fail;
129
 
      printf( "test '%s' failed: %s\n", name.c_str(), i->xml().c_str() );
 
129
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), i->xml().c_str() );
130
130
    }
131
131
    delete i;
132
132
    }
144
144
        || !i->hasChild( "status", "xml:lang", "the xmllang" ) )
145
145
    {
146
146
      ++fail;
147
 
      printf( "test '%s' failed: %s\n", name.c_str(), i->xml().c_str() );
 
147
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), i->xml().c_str() );
148
148
    }
149
149
    delete i;
150
150
  }
177
177
  }
178
178
  else
179
179
  {
180
 
    printf( "Subscription: %d test(s) failed\n", fail );
 
180
    fprintf( stderr, "Subscription: %d test(s) failed\n", fail );
181
181
    return 1;
182
182
  }
183
183