]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/205: Fix that b2 variable is treated as octal vaule
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Mon, 12 Nov 2018 08:01:03 +0000 (16:01 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 18 Nov 2018 12:46:43 +0000 (20:46 +0800)
commit4096b78d665eeb1cac15e6db8bbab37bc0a4b7e9
tree03c3e1f467c9986e87cf3f2b77da72b654f23210
parent98a4eb33deb500b48ebcf6e3f4aa99786c04f5f7
xfs/205: Fix that b2 variable is treated as octal vaule

Running xfs/205 triggers the following error:
----------------------------------------------
QA output created by 205
+./tests/xfs/205: line 61: 098: value too great for base (error token is "098")
...
----------------------------------------------

If b2 variable is a 2-digit number beginning with 0(e.g. 098),
it will be treated as octal vaule instaed of decimal value.  We
try to declare it as decimal value forcely.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/xfs/205