From: Eric Biggers Date: Tue, 23 Jul 2013 16:44:15 +0000 (-0500) Subject: test-imagex-capture_and_apply: Use C locale for parsing float X-Git-Tag: v1.5.0~88 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=aa555a322e682df08f0bf566c1fea81e351e99e5;hp=7fb81b1d15e0e1470844c299e1952a6b0b21dc51 test-imagex-capture_and_apply: Use C locale for parsing float This fixes a test failure in locales where the decimal separator is not a period. --- diff --git a/tests/test-imagex-capture_and_apply b/tests/test-imagex-capture_and_apply index 5de3b0e2..d4333486 100755 --- a/tests/test-imagex-capture_and_apply +++ b/tests/test-imagex-capture_and_apply @@ -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