summaryrefslogtreecommitdiff
path: root/tests/test-init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-init.sh')
-rwxr-xr-xtests/test-init.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-init.sh b/tests/test-init.sh
index 0875a75b..a6278599 100755
--- a/tests/test-init.sh
+++ b/tests/test-init.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# Unit tests for init.sh
-# Copyright (C) 2011-2015 Free Software Foundation, Inc.
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
# This file is part of the GNUlib Library.
#
# This program is free software: you can redistribute it and/or modify
@@ -57,7 +57,8 @@ EOF
# Also remove the @@ line, since Solaris 5.10 and GNU diff formats differ:
# -@@ -0,0 +1 @@
# +@@ -1,0 +1,1 @@
- sed 's/ .*//;/^@@/d' out > k && mv k out
+ # Also, remove space after leading '+', since AIX 7.1 diff outputs a space.
+ sed 's/ .*//;/^@@/d;s/^+ /+/' out > k && mv k out
cat <<\EOF > exp
--- empty
+++ in