btrfs: tests: drop messages when some tests finish
[sfrench/cifs-2.6.git] / fs / btrfs / tests / free-space-tests.c
index 5c2f77e9439bee97c384c6c7ab0981656c327dea..d0fdc94a5d612e1b631c340a5298543ba959a2a5 100644 (file)
@@ -834,9 +834,10 @@ int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize)
 
        test_msg("running btrfs free space cache tests");
        fs_info = btrfs_alloc_dummy_fs_info(nodesize, sectorsize);
-       if (!fs_info)
+       if (!fs_info) {
+               test_std_err(TEST_ALLOC_FS_INFO);
                return -ENOMEM;
-
+       }
 
        /*
         * For ppc64 (with 64k page size), bytes per bitmap might be
@@ -846,13 +847,14 @@ int btrfs_test_free_space_cache(u32 sectorsize, u32 nodesize)
        cache = btrfs_alloc_dummy_block_group(fs_info,
                                      BITS_PER_BITMAP * sectorsize + PAGE_SIZE);
        if (!cache) {
-               test_err("couldn't run the tests");
+               test_std_err(TEST_ALLOC_BLOCK_GROUP);
                btrfs_free_dummy_fs_info(fs_info);
                return 0;
        }
 
        root = btrfs_alloc_dummy_root(fs_info);
        if (IS_ERR(root)) {
+               test_std_err(TEST_ALLOC_ROOT);
                ret = PTR_ERR(root);
                goto out;
        }
@@ -874,6 +876,5 @@ out:
        btrfs_free_dummy_block_group(cache);
        btrfs_free_dummy_root(root);
        btrfs_free_dummy_fs_info(fs_info);
-       test_msg("free space cache tests finished");
        return ret;
 }