-# inbox/7 and other/2 are linked. Modify one and verify
-# that the other changes as well.
-echo '' >>$MH_TEST_DIR/Mail/other/2
-run_test "cmp $MH_TEST_DIR/Mail/inbox/7 $MH_TEST_DIR/Mail/other/2" ''
+ # inbox/7 and other/2 are linked. Modify one and verify
+ # that the other changes as well.
+ echo '' >>$MH_TEST_DIR/Mail/other/2
+ run_test "cmp $MH_TEST_DIR/Mail/inbox/7 $MH_TEST_DIR/Mail/other/2" ''
+else
+ # Hard links are not supported. Skip the -link test but emulate
+ # what it would have done using a copy instead of a link.
+ cp -p Mail/inbox/7 Mail/other/2
+ folder -f +inbox 7 >/dev/null
+fi
+set -e
+rm -f $$.txt $$-2.txt