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

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



Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 770e0cc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}

+3 −3
Original line number Diff line number Diff line
@@ -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;
	}