projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for module 'alignof'.
[gnulib.git]
/
tests
/
test-link.sh
diff --git
a/tests/test-link.sh
b/tests/test-link.sh
index
e18bb63
..
1519f9d
100755
(executable)
--- a/
tests/test-link.sh
+++ b/
tests/test-link.sh
@@
-7,7
+7,16
@@
trap 'rm -fr $tmpfiles' 1 2 3 15
echo "hello" > test-link-a.txt || exit 1
# Use link() to create a new name for it.
echo "hello" > test-link-a.txt || exit 1
# Use link() to create a new name for it.
-./test-link${EXEEXT} test-link-a.txt test-link-b.txt || exit 1
+./test-link${EXEEXT} test-link-a.txt test-link-b.txt
+case $? in
+ 0) ;;
+ 77)
+ echo "Skipping test: hard links are not supported on this file system"
+ rm -fr $tmpfiles
+ exit 77
+ ;;
+ *) exit 1 ;;
+esac
cmp test-link-a.txt test-link-b.txt || exit 1
# Modify the contents of the first file.
cmp test-link-a.txt test-link-b.txt || exit 1
# Modify the contents of the first file.