~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to init.cfg

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# This file is sourced by init.sh, *before* its initialization.
2
2
 
3
 
# Copyright (C) 2010-2012 Free Software Foundation, Inc.
 
3
# Copyright (C) 2010-2013 Free Software Foundation, Inc.
4
4
 
5
5
# This program is free software: you can redistribute it and/or modify
6
6
# it under the terms of the GNU General Public License as published by
159
159
  fi
160
160
}
161
161
 
162
 
# Skip the current test if valgrind doesn't work.
 
162
# Skip the current test if valgrind doesn't work,
 
163
# which could happen if not installed,
 
164
# or hasn't support for the built architecture,
 
165
# or hasn't appropriate error suppressions installed etc.
163
166
require_valgrind_()
164
167
{
165
 
  valgrind --help >/dev/null || skip_ "requires valgrind"
 
168
  valgrind --error-exitcode=1 true 2>/dev/null ||
 
169
    skip_ "requires a working valgrind"
166
170
}
167
171
 
168
172
require_setfacl_()
352
356
{
353
357
  local rm_version=$(
354
358
    setuidgid $NON_ROOT_USERNAME env PATH="$PATH" rm --version |
355
 
    sed -n 'ls/.* //p'
 
359
    sed -n '1s/.* //p'
356
360
  )
357
361
  case ":$rm_version:" in
358
362
      :$PACKAGE_VERSION:) ;;