~ubuntu-branches/debian/sid/libevdev/sid

« back to all changes in this revision

Viewing changes to test/test-kernel.c

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2014-09-09 07:59:54 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20140909075954-wuic1ooxes68u2er
Tags: 1.3+dfsg-1
* New upstream release.
* libevdev should really have priority optional rather than extra.
* Add upstream's signing key and use it in debian/watch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        dev_fd = libevdev_get_fd(dev);
76
76
        ck_assert_int_ge(dev_fd, 0);
77
77
        rc = ioctl(dev_fd, EVIOCREVOKE, NULL);
78
 
        if (rc == -1 && errno == -EINVAL) {
 
78
        if (rc == -1 && errno == EINVAL) {
79
79
                fprintf(stderr, "WARNING: skipping EVIOCREVOKE test, not suported by current kernel\n");
80
80
                goto out;
81
81
        }
144
144
        ck_assert_int_gt(fd, -1);
145
145
 
146
146
        rc = ioctl(fd, EVIOCREVOKE, NULL);
147
 
        if (rc == -1 && errno == -EINVAL) {
 
147
        if (rc == -1 && errno == EINVAL) {
148
148
                fprintf(stderr, "WARNING: skipping EVIOCREVOKE test, not suported by current kernel\n");
149
149
                goto out;
150
150
        }