~nutznboltz-deactivatedaccount/ubuntu/precise/gnutls26/fix-lp926350

« back to all changes in this revision

Viewing changes to gl/tests/test-select-stdin.c

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-10-01 15:28:13 UTC
  • mfrom: (12.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20111001152813-yygm1c4cxonfxhzy
Tags: 2.12.11-1
* New upstream version.
  + Allow CA importing of 0 certificates to succeed. Closes: #640639
* Add libp11-kit-dev to libgnutls-dev dependencies. (see #643811)
* [20_guiledocstring.diff] guile: Fix docstring extraction with CPP 4.5+.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Test of select() substitute, reading from stdin.
2
 
   Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
 
2
   Copyright (C) 2008-2011 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
24
24
#include <sys/time.h>
25
25
#include <unistd.h>
26
26
 
 
27
#include "macros.h"
 
28
 
27
29
int
28
30
main (void)
29
31
{
67
69
              exit (1);
68
70
            }
69
71
          /* Timeout */
70
 
          printf ("."); fflush (stdout);
 
72
          printf (".");
 
73
          ASSERT (fflush (stdout) == 0);
71
74
        }
72
75
      else
73
76
        {
74
77
          char c;
75
78
 
76
79
          printf ("Input available! Trying to read 1 byte...\n");
77
 
          read (0, &c, 1);
 
80
          ASSERT (read (0, &c, 1) == 1);
78
81
        }
79
82
    }
80
83
}