~ubuntu-branches/ubuntu/quantal/libexplain/quantal

« back to all changes in this revision

Viewing changes to test/03/t0332a.sh

  • Committer: Package Import Robot
  • Author(s): Peter Miller
  • Date: 2012-03-04 23:46:21 UTC
  • mfrom: (4.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20120304234621-btwurgtrss9dp14u
Tags: 0.52.D002-1
* This change set updates all test that concern EACCES to default pass if
  executed by root, because otherwise they get false negatives when they are
  expecting failures.
* 0.51.D004: Closes: #614462
* This is a summary, see earlier changelog entries for details of individual
  bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
3
# libexplain - Explain errno values returned by libc functions
4
 
# Copyright (C) 2008-2011 Peter Miller
 
4
# Copyright (C) 2008-2012 Peter Miller
5
5
# Written by Peter Miller <pmiller@opensource.org.au>
6
6
#
7
7
# This program is free software; you can redistribute it and/or modify
21
21
TEST_SUBJECT="accept EPERM"
22
22
. test_prelude
23
23
 
 
24
# this test doesn't work for root (or fakeroot)
 
25
test_config not-root || pass
 
26
 
24
27
fmt > test.ok << 'fubar'
25
28
accept(fildes = 42, sock_addr = 0xNNNNNNNN, sock_addr_size = { XXX })
26
29
failed, Operation not permitted (EPERM) because firewall rules forbid
52
55
#
53
56
pass
54
57
 
55
 
# vim:ts=8:sw=4:et
 
58
# vim: set ts=8 sw=4 et :