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

« back to all changes in this revision

Viewing changes to test/02/t0204a.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 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="mkdir EACCES"
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
cat > test.ok << 'fubar'
25
28
mkdir(pathname = "a/foo/bar", mode = S_IRWXU | S_IRWXG | S_IRWXO) failed,
26
29
Permission denied (EACCES) because the process does not have write
56
59
#
57
60
pass
58
61
 
59
 
# vim:ts=8:sw=4:et
 
62
# vim: set ts=8 sw=4 et :