- test_string_to_size_one("512B", 512, "B");
- test_string_to_size_one("1.067kB", 1067, "B");
- test_string_to_size_one("1.042KiB", 1067, "B");
-
- /* Lustre special handling */
- test_string_to_size_one("16", 16777216, "MiB");
- test_string_to_size_one("65536", 65536, "B");
- test_string_to_size_one("128K", 131072, "B");
- test_string_to_size_one("1M", 1048576, "B");
- test_string_to_size_one("256.5G", 275414777856ULL, "GiB");
-
- /* normal values */
- test_string_to_size_one("8.39MB", 8390000, "MiB");
- test_string_to_size_one("8.00MiB", 8388608, "MiB");
- test_string_to_size_one("256GB", 256000000, "GiB");
- test_string_to_size_one("238.731 GiB", 256335459385ULL, "GiB");
+ ret += test_string_to_size_one("0B", 0, "B");
+ ret += test_string_to_size_one("512B", 512, "B");
+ ret += test_string_to_size_one("1.067kB", 1067, "B");
+ ret += test_string_to_size_one("1.042KiB", 1067, "B");
+ ret += test_string_to_size_one("8", 8388608, "M");
+ ret += test_string_to_size_one("65536", 65536, "B");
+ ret += test_string_to_size_one("128", 131072, "K");
+ ret += test_string_to_size_one("1M", 1048576, "B");
+ ret += test_string_to_size_one("0.5T", 549755813888ULL, "T");
+ ret += test_string_to_size_one("256.5G", 275414777856ULL, "G");
+ if (ret)
+ RETURN(ret);
+
+ /* string helper values */
+ ret += test_string_to_size_one("16", 16777216, "MiB");
+ ret += test_string_to_size_one("8.39MB", 8390000, "MiB");
+ ret += test_string_to_size_one("8.00MiB", 8388608, "MiB");
+ ret += test_string_to_size_one("256GB", 256000000000ULL, "GiB");
+ ret += test_string_to_size_one("238.731GiB", 256335459385ULL, "GiB");
+ if (ret)
+ RETURN(ret);