Systemd/src/test
Zbigniew Jędrzejewski-Szmek 601185b43d Unify parse_argv style
getopt is usually good at printing out a nice error message when
commandline options are invalid. It distinguishes between an unknown
option and a known option with a missing arg. It is better to let it
do its job and not use opterr=0 unless we actually want to suppress
messages. So remove opterr=0 in the few places where it wasn't really
useful.

When an error in options is encountered, we should not print a lengthy
help() and overwhelm the user, when we know precisely what is wrong
with the commandline. In addition, since help() prints to stdout, it
should not be used except when requested with -h or --help.

Also, simplify things here and there.
2014-08-03 21:46:07 -04:00
..
Makefile
test-architecture.c test: print library tuple in test 2014-07-03 15:50:57 +02:00
test-async.c tests: add test-async 2014-06-22 00:36:19 +02:00
test-barrier.c barrier: fix race in test-code 2014-07-29 19:19:49 +02:00
test-boot-timestamps.c support acpi firmware performance data (FPDT) 2013-09-24 15:43:41 +02:00
test-calendarspec.c test: extend calendarspec test a bit 2012-11-23 21:50:51 +01:00
test-capability.c tests: add test-capability 2014-06-22 00:36:19 +02:00
test-cgroup-mask.c test-cgroup-mask: fix masks in test and enable by default 2014-07-20 19:48:16 -04:00
test-cgroup-util.c Remove unnecessary casts in printfs 2014-05-15 15:29:58 +02:00
test-cgroup.c core: general cgroup rework 2013-06-27 04:17:34 +02:00
test-conf-files.c test: ensure conf_files_list returns absolute paths 2014-06-20 00:10:47 -04:00
test-daemon.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-date.c time: support @ syntax for denoting times since the UNIX epoch 1970-1-1 2014-03-25 04:08:16 +01:00
test-device-nodes.c shared/util: fix off-by-one error in tag_to_udev_node 2013-10-06 18:29:12 -04:00
test-ellipsize.c test: test for ellipsize 2013-10-13 17:56:54 -04:00
test-engine.c test-engine: fix access to unit load path 2014-07-20 19:48:16 -04:00
test-env-replace.c tests: more tests 2013-02-11 22:22:40 +01:00
test-fdset.c tests: add test_fdset_remove 2014-06-22 00:36:19 +02:00
test-fileio.c machinectl: show /etc/os-release information of container in status output 2014-07-03 17:54:24 +02:00
test-hashmap.c tests: add tests to test-hashmap 2014-06-16 20:38:22 +02:00
test-helper.h replace tabs with spaces in some files 2014-02-21 03:50:12 +01:00
test-hostname.c systemctl: automatically turn paths and unescaped unit names into proper unit names 2012-06-22 13:08:48 +02:00
test-id128.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-install.c install: beef up preset logic to limit to only enable or only disable, and do all-unit preset operations 2014-06-17 02:43:17 +02:00
test-ipcrm.c logind: automatically remove SysV + POSIX IPC objects when the users owning them fully log out 2014-03-14 01:49:44 +01:00
test-job-type.c test: correct enum misassignment 2012-07-22 23:53:48 +02:00
test-libudev.c Unify parse_argv style 2014-08-03 21:46:07 -04:00
test-list.c list: make our list macros a bit easier to use by not requring type spec on each invocation 2013-10-14 06:11:19 +02:00
test-log.c Remove unnecessary casts in printfs 2014-05-15 15:29:58 +02:00
test-loopback.c
test-namespace.c util: replace close_pipe() with new safe_close_pair() 2014-03-24 03:22:44 +01:00
test-ns.c core: rename ReadOnlySystem= to ProtectSystem= and add a third value for also mounting /etc read-only 2014-06-04 18:12:55 +02:00
test-path-util.c Add utility function to append root to path 2014-07-26 15:08:42 -04:00
test-prioq.c shared: switch our hash table implementation over to SipHash 2013-12-22 21:12:25 +01:00
test-pty.c test-pty: silence a warning 2014-07-17 20:23:53 +02:00
test-ratelimit.c tests: add test-ratelimit 2014-06-24 02:40:50 +02:00
test-replace-var.c shared: add API for replacing @FOO@ style variables in strings 2012-11-14 22:21:16 +01:00
test-ring.c shared: fix coding-style for ring-buffer implementation 2014-07-11 16:43:53 +02:00
test-rtnl-manual.c sd-rtnl: fix broken test cases and add support for tunnel 2014-04-03 18:09:24 +02:00
test-sched-prio.c test-engine: fix access to unit load path 2014-07-20 19:48:16 -04:00
test-sleep.c Make test-login and test-sleep output debugging 2013-09-17 16:44:38 -04:00
test-socket-util.c test-socket-util: silence warnings 2014-07-16 08:52:11 +02:00
test-strbuf.c trivial coding style clean ups 2013-12-03 22:27:45 +01:00
test-strip-tab-ansi.c journalctl: strip TABs and ANSI color sequences from log messages when displaying them 2012-12-23 11:28:14 +01:00
test-strv.c Properly report invalid quoted strings 2014-07-31 08:56:03 -04:00
test-strxcpyx.c tests: fix size_t in format string 2013-03-26 23:50:44 -04:00
test-tables.c core: remove systemd_running_as lookup functions 2014-07-19 15:44:50 -04:00
test-time.c Remove unnecessary casts in printfs 2014-05-15 15:29:58 +02:00
test-tmpfiles.c always use the same code for creating temporary files 2014-01-28 13:47:35 +01:00
test-udev.c udev: unify event timeout handling 2014-07-29 15:18:27 +02:00
test-unit-file.c machinectl: show /etc/os-release information of container in status output 2014-07-03 17:54:24 +02:00
test-unit-name.c test-engine: fix access to unit load path 2014-07-20 19:48:16 -04:00
test-utf8.c core: do not print invalid utf-8 in error messages 2014-02-08 13:07:39 -05:00
test-util.c Properly report invalid quoted strings 2014-07-31 08:56:03 -04:00
test-watchdog.c
test-xml.c bus: add basic dbus1 policy parser 2014-06-06 19:41:24 +02:00