Commit Graph

862 Commits

Author SHA1 Message Date
e227596c20 test/run_output: pass FileDescriptor to run_output() 2021-03-08 16:44:15 +01:00
bc2988144e test/run_output: use OptionParser, add option "--verbose" 2021-03-05 17:39:48 +01:00
b1a9958c66 test/run_output: add struct CommandLine 2021-03-05 17:39:48 +01:00
c962a6be76 test/run_convert: fix Windows compiler errors 2021-03-05 13:24:28 +01:00
922c4bf3f0 test/TestLookupFile: fix Windows compiler errors 2021-03-05 13:22:34 +01:00
c58c53293c test/run_input: add option --seek 2021-02-07 21:20:17 +01:00
8695a2806a test/run_input: document more options 2021-02-07 21:17:10 +01:00
5348f8c9c8 copyright year 2021 2021-01-01 19:54:28 +01:00
1195eb266e protocol/Ack: remove unused variable ack_domain 2020-10-28 15:47:05 +01:00
e0c75da266 playlist/cue/parser: pass StringView to Feed() 2020-10-05 20:33:58 +02:00
dffd5831f8 test/fuzzer: a simple fuzzer using libFuzzer
This commit adds some basic infrastructure for fuzzers, and adds a
fuzzer for the CUE sheet parser.
2020-10-05 20:25:26 +02:00
85af4d6916 meson.build: add -Wdouble-promotion 2020-09-22 20:40:53 +02:00
85849c9396 decoder/plugin: add method protocols()
Similar to commit 4e2a551f30 but for
decoder plugins.  This is tailored for the FFmpeg decoder plugin which
implements some protocols (e.g. RTSP) as demuxer plugin.
2020-09-21 14:53:18 +02:00
e8380cf2aa Merge branch 'v0.21.x' into master 2020-09-07 21:15:53 +02:00
1a5e0ef7c9 test/test_archive_iso9660.sh: use an odd chunk size to trigger bug
This makes the unit test fail.  D'oh!
2020-09-07 20:53:46 +02:00
979a7a1dcc test/run_input: add option --chunk-size 2020-09-07 20:52:37 +02:00
291be84704 Merge branch 'v0.21.x' into master 2020-09-07 20:18:40 +02:00
962cf32ba7 test/run_input: pass FileDescriptor to dump_input_stream() 2020-09-07 20:14:39 +02:00
ae23682372 system/FileDescriptor: add method FullWrite() 2020-09-07 20:13:43 +02:00
540919f256 *: use nullptr instead of NULL 2020-09-07 20:08:27 +02:00
398281cd76 io/FileDescriptor: add method FullRead() 2020-09-07 20:07:47 +02:00
88446ccde9 test/run_filter: use Filter::Flush() 2020-09-07 20:07:40 +02:00
6238cc0734 test/run_filter: pass ConstBuffer<void> to FullWrite() 2020-09-07 20:07:33 +02:00
fd4823c507 test/run_filter: fix error message 2020-09-07 20:07:29 +02:00
68bcfd8bf0 test/run_filter: check for partial writes 2020-09-07 20:07:24 +02:00
1d332746af test/run_filter: move code to WriteOrThrow() 2020-09-07 20:07:18 +02:00
f3e133c617 test/run_filter: use class FileDescriptor 2020-09-07 20:07:13 +02:00
1678a6eb59 test/run_filter: ensure that partial frames will not get passed to the filter 2020-09-07 20:07:08 +02:00
b4dc2c07d5 test/run_filter: move the buffer into the loop 2020-09-07 20:07:03 +02:00
d7838950d8 test/run_input: use WithBufferedOutputStream() 2020-09-07 20:04:13 +02:00
2e93a83dd5 test/run_input: convert pointer to reference 2020-09-07 20:02:12 +02:00
2bdf1b2284 test/meson.build: add explicit dependency from run_output on libevent.a
We could exclude that feature if neither ALSA nor httpd are enabled,
but that's too complicated for this small debug program.
2020-08-14 14:40:39 +02:00
36e6079c57 Log: make LogLevel the first parameter
Prepare for templated functions.
2020-07-06 21:07:26 +02:00
c4efc37ad8 system/ByteOrder: move to util/ 2020-07-01 17:49:57 +02:00
3c5ef504f8 test/meson.build: add explicit dependency from run_output on libevent.a
We could exclude that feature if neither ALSA nor httpd are enabled,
but that's too complicated for this small debug program.
2020-07-01 15:26:02 +02:00
0cefb61a2e test/meson.build: install GTest from fallback Meson wrap 2020-06-04 14:56:43 +02:00
b7ab1a9d79 test/meson.build: disable GTest warning "ScopedTrace was marked unused but was used" 2020-06-04 10:32:02 +02:00
210c270624 test/test_pcm_export: eliminate zero-length arrays
C++ doesn't allow that.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/875
2020-05-26 16:50:40 +02:00
9815d10137 system/FileDescriptor: move to io/ 2020-05-05 14:27:03 +02:00
12b97bbe38 Merge tag 'v0.21.22'
release v0.21.22
2020-04-02 18:02:10 +02:00
a689b881d3 test/meson.build: work around linker failure due to statically linked CURL 2020-04-02 17:16:05 +02:00
bad829509e test/ShutdownHandler: add inline to work around Windows linker problems 2020-04-02 17:16:05 +02:00
9c66b0414a test/*: fix Windows build using class FromNarrowPath 2020-04-02 17:16:05 +02:00
62229f14da test/time: add test for LocalTime(), GmTime() 2020-04-01 16:21:29 +02:00
a4c925c8d7 test/meson.build: move TestTime to time/ 2020-04-01 16:12:01 +02:00
60610e90b1 test/net/TestIPv[46]Address: fix Windows build errors 2020-04-01 16:09:24 +02:00
a5b136c420 test: fix double promotion
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-16 22:56:30 -07:00
97425d56e7 remove gcc_unused
[[maybe_unused]] (introduced in C++17) is standard C++.

https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused
says that this is equivalent to the GNU unused attribute.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-16 00:08:21 -07:00
cefc773992 playlist/PlaylistSong: pass std::string_view 2020-03-13 19:58:36 +01:00
edc4989d9c change errno.h to cerrno
The former is deprecated by C++14. It's also functionally the same.

From the standard:

19.4
The header<cerrno>is described in Table 43. Its contents are the same as
the POSIX header<errno.h>,except that errno shall be defined as a macro.
[Note: The intent is to remain in close alignment with the POSIX
standard.] A separate errno value shall be provided for each thread.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-12 15:51:16 -07:00