]> wimlib.net Git - wimlib/commitdiff
test-imagex-capture_and_apply: Use C locale for parsing float
authorEric Biggers <ebiggers3@gmail.com>
Tue, 23 Jul 2013 16:44:15 +0000 (11:44 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 23 Jul 2013 16:44:21 +0000 (11:44 -0500)
This fixes a test failure in locales where the decimal separator is not a
period.

tests/test-imagex-capture_and_apply

index 5de3b0e20de5e35555977a83cb72ad5e1c07fefb..d4333486d13ad09f3d27b1d0984bb9becd3d18f5 100755 (executable)
@@ -53,7 +53,10 @@ do_test() {
 
                # Can we split the WIM, apply the split WIM, join the split WIM,
                # and apply the joined WIM, and get the same results every time?
-               if ! imagex split test.wim test.swm 0.01; then
+               #
+               # LC_ALL=C avoids locale-dependent floating point number
+               # parsing.
+               if ! LC_ALL=C imagex split test.wim test.swm 0.01; then
                        error "Failed to split WIM"
                fi
                if ! imagex apply test.swm 1 out.dir --ref "test*.swm" ; then