The NetBSD Project

CVS log for src/tests/lib/librefuse/t_refuse_opt.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / lib / librefuse

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Fri Nov 24 17:31:03 2023 UTC (4 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +51 -51 lines
Diff to previous 1.9 (colored)

tests: Audit RZ abuse.

RZ succeeds if x is zero, and fails if x is nonzero, treating a
nonzero value as a error number as in errno(3) to print the message.

The following library routines instead return -1 on failure and set
errno to the error code:

fuse_opt_add_arg
fuse_opt_add_opt
fuse_opt_add_opt_escaped
fuse_opt_insert_arg
lseek
system

So use RL instead for those -- succeeds if x is zero, and fails if x
is -1.

This shouldn't make any tests newly fail or newly succeed -- the
functions in question only ever return 0 or -1 -- but if the tests
were already failing anywhere, they will now fail with meaningful
messages.

TBD: dlinfo, which isn't fit for RL or RZ since it reports errors via
dlerror() rather than errno.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Dec 4 06:42:39 2021 UTC (2 years, 4 months ago) by pho
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

librefuse: Preparation of a proper API versioning; no more #ifdef woes in user code

The goal is to fully support FUSE API version 3.0 while maintaining
API/ABI compatibility with code written for 2.6 (or even older).

* <fuse.h> now emits a compiler warning if it's included without
  defining FUSE_USE_VERSION. It had been silently defaulted to the
  latest supported version prior to this change. This is permissive
  compared to the original FUSE, as it emits an error instead.

* <fuse.h> now emits a warning if FUSE_USE_VERSION is higher than what
  can be provided.

* Added a macro FUSE_MAKE_VERSION(maj, min). It was missing from
  librefuse <fuse.h>.

No actual API updates have been made (yet).

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:59 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.7.2.2: +3 -3 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Sync with HEAD

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 13 21:30:41 2017 UTC (7 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:55 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.7.2.1: +418 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.7.2.1, Mon Nov 21 16:26:16 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.7: +0 -418 lines
FILE REMOVED

file t_refuse_opt.c was added on branch pgoyette-localcount on 2017-01-07 08:56:55 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Mon Nov 21 16:26:16 2016 UTC (7 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Branch point for: pgoyette-localcount
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

use <sys/types.h>

Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 16 16:11:42 2016 UTC (7 years, 5 months ago) by pho
Branch: MAIN
Changes since 1.5: +260 -2 lines
Diff to previous 1.5 (colored)

Major rework of fuse_opt_parse(3) so that it supports all the functionality of the original function

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 15 10:05:22 2016 UTC (7 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.4: +5 -2 lines
Diff to previous 1.4 (colored)

Evil hack to make register_t known and fix the build - XXX not sure this
is the proper fix.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Nov 15 00:37:18 2016 UTC (7 years, 5 months ago) by pho
Branch: MAIN
Changes since 1.3: +22 -22 lines
Diff to previous 1.3 (colored)

Rename test functions

Revision 1.3 / (download) - annotate - [select for diffs], Tue Nov 15 00:32:42 2016 UTC (7 years, 5 months ago) by pho
Branch: MAIN
Changes since 1.2: +42 -2 lines
Diff to previous 1.2 (colored)

lib

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 14 17:19:29 2016 UTC (7 years, 5 months ago) by pho
Branch: MAIN
Changes since 1.1: +24 -11 lines
Diff to previous 1.1 (colored)

Implement missing fuse_opt_add_opt(3) and fuse_opt_add_opt_escaped(3)

Revision 1.1 / (download) - annotate - [select for diffs], Mon Nov 14 16:10:31 2016 UTC (7 years, 5 months ago) by pho
Branch: MAIN

Add some tests for librefuse

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>