~ubuntu-branches/ubuntu/precise/liboggz/precise

« back to all changes in this revision

Viewing changes to src/tests/write-bad-bytes.c

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Wilkinson
  • Date: 2005-04-16 01:19:44 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050416011944-5ipwrrc260ihkpp8
Tags: 0.9.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
  op.granulepos = granulepos;
57
57
  op.packetno = packetno;
58
58
  
 
59
  if (bytes < 0) INFO ("Feeding packet with negative byte count");
 
60
 
59
61
  err = oggz_write_feed (oggz, &op, serialno, 0, NULL);
60
62
  if (packetno == 0) {
61
63
    if (err != 0)
62
64
      FAIL ("Could not feed OGGZ");
63
65
  } else {
64
 
    INFO ("Feeding packet with negative byte count");
65
66
    if (err != OGGZ_ERR_BAD_BYTES)
66
67
      FAIL ("Bad bytes not detected");
67
68