#!/bin/sh
# Ensure that touch -h works.
-# Copyright (C) 2009-2011 Free Software Foundation, Inc.
+# Copyright (C) 2009-2012 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ touch
-ln -s nowhere dangling || framework_failure
-touch file || framework_failure
-ln -s file link || framework_failure
+ln -s nowhere dangling || framework_failure_
+touch file || framework_failure_
+ln -s file link || framework_failure_
# These first tests should work on every platform.
# The remaining tests of -h require kernel support for changing symlink times.
grep '^#define HAVE_UTIMENSAT 1' "$CONFIG_HEADER" > /dev/null ||
grep '^#define HAVE_LUTIMES 1' "$CONFIG_HEADER" > /dev/null ||
- skip_test_ 'this system lacks the utimensat function'
+ skip_ 'this system lacks the utimensat function'
# Changing time of dangling symlink is okay.
# Skip the test if this fails, but the error text corresponds to
0) test -f nowhere && fail=1
test -s err && fail=1;;
1) grep 'Function not implemented' err \
- && skip_test_ 'this system lacks the utimensat function'
+ && skip_ 'this system lacks the utimensat function'
fail=1;;
*) fail=1;;
esac