btrfs: tests: use standard error message after inode allocation failure
authorDavid Sterba <dsterba@suse.com>
Fri, 15 Mar 2019 16:28:46 +0000 (17:28 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:26 +0000 (19:02 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/extent-io-tests.c
fs/btrfs/tests/inode-tests.c

index 904addec8aef96c2b7be874d781a67fdcc45696d..3064b61b110b9f1fc0ebdc64a695de91fd8ad395 100644 (file)
@@ -73,7 +73,7 @@ static int test_find_delalloc(u32 sectorsize)
 
        inode = btrfs_new_test_inode();
        if (!inode) {
-               test_err("failed to allocate test inode");
+               test_std_err(TEST_ALLOC_INODE);
                return -ENOMEM;
        }
 
index e63c128c741c3d53e6e1ebea45518be882c7828d..46571cd275139d955b14f1623e517350f7729878 100644 (file)
@@ -228,7 +228,7 @@ static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize)
 
        inode = btrfs_new_test_inode();
        if (!inode) {
-               test_err("couldn't allocate inode");
+               test_std_err(TEST_ALLOC_INODE);
                return ret;
        }
 
@@ -829,7 +829,7 @@ static int test_hole_first(u32 sectorsize, u32 nodesize)
 
        inode = btrfs_new_test_inode();
        if (!inode) {
-               test_err("couldn't allocate inode");
+               test_std_err(TEST_ALLOC_INODE);
                return ret;
        }
 
@@ -929,7 +929,7 @@ static int test_extent_accounting(u32 sectorsize, u32 nodesize)
 
        inode = btrfs_new_test_inode();
        if (!inode) {
-               test_err("couldn't allocate inode");
+               test_std_err(TEST_ALLOC_INODE);
                return ret;
        }