diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-05-17 13:13:06 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-05-17 13:57:01 -0400 |
commit | c70e7375b1808b23fe4db2018d5e8c9bcb70464d (patch) | |
tree | b84fca909d89c7d5a7f461c7cafeae0058bdca79 /tests/bfstd.c | |
parent | c3d6f07b8e4d22df533ce7a90660ae1da2df5476 (diff) | |
download | bfs-c70e7375b1808b23fe4db2018d5e8c9bcb70464d.tar.xz |
diag: New helpers to include xstrerror(errno) automatically
Diffstat (limited to 'tests/bfstd.c')
-rw-r--r-- | tests/bfstd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bfstd.c b/tests/bfstd.c index 07b68b0..f0f61ce 100644 --- a/tests/bfstd.c +++ b/tests/bfstd.c @@ -15,12 +15,12 @@ static bool check_base_dir(const char *path, const char *dir, const char *base) bool ret = true; char *xdir = xdirname(path); - bfs_verify(xdir, "xdirname(): %s", xstrerror(errno)); + bfs_everify(xdir, "xdirname()"); ret &= bfs_check(strcmp(xdir, dir) == 0, "xdirname('%s') == '%s' (!= '%s')", path, xdir, dir); free(xdir); char *xbase = xbasename(path); - bfs_verify(xbase, "xbasename(): %s", xstrerror(errno)); + bfs_everify(xbase, "xbasename()"); ret &= bfs_check(strcmp(xbase, base) == 0, "xbasename('%s') == '%s' (!= '%s')", path, xbase, base); free(xbase); |