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

« back to all changes in this revision

Viewing changes to src/tests/shim/shim_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:
23
23
    if( t )
24
24
    {
25
25
      ++fail;
26
 
      printf( "test '%s' failed\n", name.c_str() );
 
26
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
27
27
    }
28
28
    delete t;
29
29
    t = 0;
40
40
    if( t->xml() != "<headers xmlns='"+ XMLNS_SHIM + "'><header name='created'>yesterday</header><header name='name'>foo</header></headers>" )
41
41
    {
42
42
      ++fail;
43
 
      printf( "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
 
43
      fprintf( stderr, "test '%s' failed: %s\n", name.c_str(), t->xml().c_str() );
44
44
    }
45
45
 
46
46
    name = "headers to tag to headers, part 2/2";
48
48
    if( s.headers() != hl )
49
49
    {
50
50
      ++fail;
51
 
      printf( "test '%s' failed\n", name.c_str() );
 
51
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
52
52
    }
53
53
    delete t;
54
54
    t = 0;
67
67
    if( se == 0 )
68
68
    {
69
69
      ++fail;
70
 
      printf( "test '%s' failed\n", name.c_str() );
 
70
      fprintf( stderr, "test '%s' failed\n", name.c_str() );
71
71
    }
72
72
    delete f;
73
73
  }
81
81
  }
82
82
  else
83
83
  {
84
 
    printf( "%d test(s) failed\n", fail );
 
84
    fprintf( stderr, "%d test(s) failed\n", fail );
85
85
    return 1;
86
86
  }
87
87