From aa555a322e682df08f0bf566c1fea81e351e99e5 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 23 Jul 2013 11:44:15 -0500 Subject: [PATCH] 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. --- tests/test-imagex-capture_and_apply | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.43.0