[Parted-commits] GNU Parted Official Repository: Changes to 'master'

Jim Meyering meyering at alioth.debian.org
Tue Aug 14 09:05:54 UTC 2007


 tests/t0100-print.sh |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 94a5dd9c9e4b82aca9d6959a54068aaee2499f04
Author: Jim Meyering <jim at meyering.net>
Date:   Tue Aug 14 11:06:29 2007 +0200

    Avoid test failure with dash's builtin printf.
    * tests/t0100-print.sh (msdos_magic): Use more-portable octal escapes,
    not hexadecimal ones.

diff --git a/tests/t0100-print.sh b/tests/t0100-print.sh
index bc6a19b..edaa282 100755
--- a/tests/t0100-print.sh
+++ b/tests/t0100-print.sh
@@ -21,7 +21,9 @@ test_description="the most basic 'print' test"
 
 dev=loop-file
 
-msdos_magic='\x55\xaa'
+# Using msdos_magic='\x55\xaa' looks nicer, but isn't portable.
+# dash's builtin printf doesn't recognize such \xHH hexadecimal escapes.
+msdos_magic='\125\252'
 
 # The extra 3KB+ zero bytes at the end are to avoid triggering a failure
 # on linux-2.6.8 that's probably related to opening with O_DIRECT.



More information about the Parted-commits mailing list