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

« back to all changes in this revision

Viewing changes to src/tests/zlib/zlib_test.cpp

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng
  • Date: 2014-01-27 22:16:13 UTC
  • mfrom: (12.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20140127221613-3wddlaq1wu6wdq9j
Tags: 1.0.9-2
Run dh-autoreconf instead of autotools-dev. (Closes: #726278, #735987)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
  if( t.data() != a )
54
54
  {
55
55
    ++fail;
56
 
    printf( "test '%s' failed\n", name.c_str() );
 
56
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
57
57
  }
58
58
 
59
59
  // -------
63
63
  if( t.data() != b )
64
64
  {
65
65
    ++fail;
66
 
    printf( "test '%s' failed\n", name.c_str() );
 
66
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
67
67
  }
68
68
 
69
69
  // -------
73
73
  if( t.data() != c )
74
74
  {
75
75
    ++fail;
76
 
    printf( "test '%s' failed\n", name.c_str() );
 
76
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
77
77
  }
78
78
 
79
79
  // -------
83
83
  if( t.data() != d )
84
84
  {
85
85
    ++fail;
86
 
    printf( "test '%s' failed\n", name.c_str() );
 
86
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
87
87
  }
88
88
 
89
89
  // -------
95
95
  if( t.data() != a + b + c + d )
96
96
  {
97
97
    ++fail;
98
 
    printf( "test '%s' failed\n", name.c_str() );
 
98
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
99
99
  }
100
100
 
101
101
 
114
114
  }
115
115
  else
116
116
  {
117
 
    printf( "CompressionZlib: %d test(s) failed\n", fail );
 
117
    fprintf( stderr, "CompressionZlib: %d test(s) failed\n", fail );
118
118
    return 1;
119
119
  }
120
120