btrfs: tests: use standard error message after inode allocation failure

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2019-03-15 17:28:46 +01:00
parent 770e0cc040
commit 6a060db85d
2 changed files with 4 additions and 4 deletions

View 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;
}

View 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;
}