Commit 6a060db8 authored by David Sterba's avatar David Sterba

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

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 770e0cc0
...@@ -73,7 +73,7 @@ static int test_find_delalloc(u32 sectorsize) ...@@ -73,7 +73,7 @@ static int test_find_delalloc(u32 sectorsize)
inode = btrfs_new_test_inode(); inode = btrfs_new_test_inode();
if (!inode) { if (!inode) {
test_err("failed to allocate test inode"); test_std_err(TEST_ALLOC_INODE);
return -ENOMEM; return -ENOMEM;
} }
......
...@@ -228,7 +228,7 @@ static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize) ...@@ -228,7 +228,7 @@ static noinline int test_btrfs_get_extent(u32 sectorsize, u32 nodesize)
inode = btrfs_new_test_inode(); inode = btrfs_new_test_inode();
if (!inode) { if (!inode) {
test_err("couldn't allocate inode"); test_std_err(TEST_ALLOC_INODE);
return ret; return ret;
} }
...@@ -829,7 +829,7 @@ static int test_hole_first(u32 sectorsize, u32 nodesize) ...@@ -829,7 +829,7 @@ static int test_hole_first(u32 sectorsize, u32 nodesize)
inode = btrfs_new_test_inode(); inode = btrfs_new_test_inode();
if (!inode) { if (!inode) {
test_err("couldn't allocate inode"); test_std_err(TEST_ALLOC_INODE);
return ret; return ret;
} }
...@@ -929,7 +929,7 @@ static int test_extent_accounting(u32 sectorsize, u32 nodesize) ...@@ -929,7 +929,7 @@ static int test_extent_accounting(u32 sectorsize, u32 nodesize)
inode = btrfs_new_test_inode(); inode = btrfs_new_test_inode();
if (!inode) { if (!inode) {
test_err("couldn't allocate inode"); test_std_err(TEST_ALLOC_INODE);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment