summaryrefslogtreecommitdiff
path: root/regress/lib/libfuse/fuse-opt-match.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-22 13:39:47 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-22 13:39:47 +0000
commita936abe8eb1ed634d49f59e28f45d864ef538ea5 (patch)
tree30e94744286e10501022c61c93fbbe20ed4c20a3 /regress/lib/libfuse/fuse-opt-match.c
parent5cb8f3f90317da50507550e5e403fe7aa04da5d5 (diff)
Return different error number to know which test is failing.
Diffstat (limited to 'regress/lib/libfuse/fuse-opt-match.c')
-rw-r--r--regress/lib/libfuse/fuse-opt-match.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/regress/lib/libfuse/fuse-opt-match.c b/regress/lib/libfuse/fuse-opt-match.c
index 3dacdd11d00..a9d2c4176a3 100644
--- a/regress/lib/libfuse/fuse-opt-match.c
+++ b/regress/lib/libfuse/fuse-opt-match.c
@@ -40,20 +40,20 @@ match_opts(const struct fuse_opt *opts, const int *results)
if (fuse_opt_match(opts, NULL) != 0)
return (1);
if (fuse_opt_match(opts, "") != 0)
- return (1);
+ return (2);
if (fuse_opt_match(opts, "bar=") != results[0])
- return (1);
+ return (3);
if (fuse_opt_match(opts, "--foo=") != results[1])
- return (1);
+ return (4);
if (fuse_opt_match(opts, "bar=%s") != results[2])
- return (1);
+ return (5);
if (fuse_opt_match(opts, "--foo=%lu") != results[3])
- return (1);
+ return (6);
if (fuse_opt_match(opts, "-x ") != results[4])
- return (1);
+ return (7);
if (fuse_opt_match(opts, "-x %s") != results[5])
- return (1);
+ return (8);
return (0);
}