btrfs: tests: add table of most common errors
authorDavid Sterba <dsterba@suse.com>
Fri, 15 Mar 2019 16:23:30 +0000 (17:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:25 +0000 (19:02 +0200)
commit703de4266f63ba1703fd04d4838fefd555dfbf9a
tree395a89b01982761cf6ce42febf642608998c6aaa
parentefd31fce54f78a172edd7ef61f9661cc614c56b2
btrfs: tests: add table of most common errors

Allocation of main objects like fs_info or extent buffers is in each
test so let's simplify and unify the error messages to a table and add a
convenience helper.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/tests/btrfs-tests.h