diff options
author | Ben Pfaff <blp@nicira.com> | 2010-05-26 09:53:08 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-05-26 12:52:55 -0700 |
commit | a238d75e3527a18efae40f1cadc2a95261249580 (patch) | |
tree | 1336d45ac640557f34af993b0dde7b9cd09e7362 | |
parent | 7cf8b2660f9813fe080a3f4fcc975099cb36417a (diff) | |
download | openvswitch-a238d75e3527a18efae40f1cadc2a95261249580.tar.gz |
tests: Avoid nonportable \x escapes in printf(1) invocation.
The \x escape is not part of POSIX, but it is a common extension. The
dash shell's built-in "printf" implementation does not include this
extension, which caused the testsuite to be generated incorrectly if it
is used as the default shell (as it is on newer versions of Debian and
Ubuntu).
This commit fixes the problem by using standard octal escapes instead.
Reported-by: Joan Cirer <joan@ev0.net>
-rw-r--r-- | tests/ovsdb-data.at | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ovsdb-data.at b/tests/ovsdb-data.at index 4bfd90991..af89e7ff4 100644 --- a/tests/ovsdb-data.at +++ b/tests/ovsdb-data.at @@ -160,11 +160,11 @@ dnl <C0> is not allowed anywhere in a UTF-8 string. dnl <ED A0 80> is a surrogate and not allowed in UTF-8. OVSDB_CHECK_POSITIVE([no invalid UTF-8 sequences in strings], [parse-atoms '[["string"]]' \ - '@<:@"m4_esyscmd([printf "\xc0"])"@:>@' \ - '@<:@"m4_esyscmd([printf "\xed\xa0\x80"])"@:>@' \ + '@<:@"m4_esyscmd([printf "\300"])"@:>@' \ + '@<:@"m4_esyscmd([printf "\355\240\200"])"@:>@' \ ], - [constraint violation: "m4_esyscmd([printf "\xc0"])" is not a valid UTF-8 string: invalid UTF-8 sequence 0xc0 -constraint violation: "m4_esyscmd([printf "\xed\xa0\x80"])" is not a valid UTF-8 string: invalid UTF-8 sequence 0xed 0xa0]) + [constraint violation: "m4_esyscmd([printf "\300"])" is not a valid UTF-8 string: invalid UTF-8 sequence 0xc0 +constraint violation: "m4_esyscmd([printf "\355\240\200"])" is not a valid UTF-8 string: invalid UTF-8 sequence 0xed 0xa0]) OVSDB_CHECK_NEGATIVE([real not acceptable integer string atom], [[parse-atom-strings '["integer"]' '0.5' ]], |