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

« back to all changes in this revision

Viewing changes to src/tests/base64/base64_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:
22
22
  if( sample != Base64::decode64( b ) )
23
23
  {
24
24
    ++fail;
25
 
    printf( "test '%s' failed\n", name.c_str() );
 
25
    fprintf( stderr, "test '%s' failed\n", name.c_str() );
26
26
  }
27
27
  b = "";
28
28
  sample = "";
34
34
  if( sample != Base64::decode64( b ) )
35
35
  {
36
36
    ++fail;
37
 
    printf( "test '%s' failed: %s\n", name.c_str(), b.c_str() );
 
37
    fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), b.c_str() );
38
38
  }
39
39
  b = "";
40
40
  sample = "";
49
49
  }
50
50
  else
51
51
  {
52
 
    printf( "Base64: %d test(s) failed\n", fail );
 
52
    fprintf( stderr, "Base64: %d test(s) failed\n", fail );
53
53
    return 1;
54
54
  }
55
55