summaryrefslogtreecommitdiff
path: root/tests/test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Test: exclude tests using deprecated functions for now.Thomas Brand2019-01-271-11/+38
|
* add another testcase for client nameThomas Brand2019-01-271-2/+23
|
* NO-OP whitespace / indentationThomas Brand2019-01-271-68/+68
|
* Use memset to fill buffer. Add test marker.Thomas Brand2019-01-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Notes: The name length test still fails. jack_client_open() will only allow 63 printable chars (unlike expected 64 == JACK_CLIENT_NAME_SIZE). This difference isn't explained by the terminating NULL character. jack_client_name_size() takes care of that (returns JACK_CLIENT_NAME_SIZE + 1). char arrays are initialized like arr[JACK_CLIENT_NAME_SIZE + 1] in many files und truncated like arr[JACK_CLIENT_NAME_SIZE]. Probable reason for 63: ':' is part of the client name and implicitely added later. Name used by caller does not include ':' thus jack_client_open() will allow only JACK_CLIENT_NAME_SIZE - 1 printable chars. This line in common/JackConstants.h gives a hint that ':' might be counted in for JACK_CLIENT_NAME_SIZE #define REAL_JACK_PORT_NAME_SIZE JACK_CLIENT_NAME_SIZE + JACK_PORT_NAME_SIZE // full name like "client_name:short_port_name" Currently many char arguments are described like @param client_name of at most jack_client_name_size() characters This can be confusing in two ways: -jack_client_name_size() does include the NULL so it's one less 'payload' character -if the returned size is used exactly as described for function jack_client_name_size() including NULL, it won't work with jack_client_open() or jack_port_register() etc. because of another reduction (eventually for the ":"). !! This needs to be verified and documentation needs to be reviewed. !!
* Fix off-by-one NULL termination in arrayThomas Brand2019-01-261-2/+2
| | | | Note: the client name length test still fails, this is a different issue.
* Revert "Fix unused{,-but-set}-variable compiler warnings."Karl Linden2018-10-061-0/+2
| | | | | | | | | | | This reverts commit dde9f29a8ef94c72f83a1e4881158dc537d24fce. The commit introduced the following compiler error: [100/255] Compiling posix/JackNetUnixSocket.cpp ../posix/JackNetUnixSocket.cpp: In member function 'int Jack::JackNetUnixSocket::NewSocket()': ../posix/JackNetUnixSocket.cpp:126:32: error: 'tos' was not declared in this scope socklen_t len = sizeof(tos);
* Fix unused{,-but-set}-variable compiler warnings.Karl Linden2018-10-061-2/+0
|
* Mass-fix spelling errorsAdrian Knoth2018-02-251-3/+3
| | | | | | Flagged by the Debian QA tool. Mostly automatic search-n-replace of the mistakes flagged.
* Tests: Fix compilation with gcc7Kjetil Matheussen2017-07-151-1/+1
|
* Make JackPortRenameCallback return void, to match JACK1 APIfalkTX2015-07-191-2/+1
| | | | | | | | | | | | | | JACK2 added this function first, but the int return has been always wrong. When JACK1 added JackPortRenameCallback it used the proper return. Now that JACK1 supports port renames, devs will start to use it. (previously it didn't work properly because of the missing jack_client_t* arg) Some code might be broken because of this, but it's a very simple change, and existing code would have been broken when changing JACK1 to JACK2. Finally, JACK2 code never uses the int return value of this callback. So there's no real reason to NOT change this.
* Add more tests for client registration code in test.cpp.Stephane Letz2013-01-261-11/+22
|
* Make API test more robust.Stephane Letz2013-01-241-8/+7
|
* Fix some incoherency with strings.Stephane Letz2013-01-141-6/+10
|
* Correct jack_test for jack_port_name_size.Stephane Letz2013-01-141-5/+5
|
* Add tests to check jack_client_name_size and jack_port_name_size API.Stephane Letz2013-01-121-17/+64
|
* New jack_get_cycle_times() implementation from Fons Adriennsen.Stephane Letz2012-03-211-2/+41
|
* Compiles again on Windows.Stephane Letz2012-03-201-0/+4
|
* Correct JackMessageBuffer::SetInitCallback.Stephane Letz2012-03-201-1/+1
|
* Correct debug targets on Windows, use jack_free in test.cpp.Stephane Letz2012-02-221-7/+10
|
* Factorize code the server/client request.sletz2012-01-111-2/+2
| | | | git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4684 0c269be4-1314-0410-8aa9-9f06e86f4224
* Fix for compilation on Solaris.sletz2012-01-061-1/+1
| | | | git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4670 0c269be4-1314-0410-8aa9-9f06e86f4224
* fix compile warningsnedko2011-04-301-2/+2
| | | | | | gcc (Gentoo 4.4.5 p1.2, pie-0.4.5) 4.4.5 git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4363 0c269be4-1314-0410-8aa9-9f06e86f4224
* Correct linking issues.sletz2011-04-081-1/+3
| | | | git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4288 0c269be4-1314-0410-8aa9-9f06e86f4224
* Correct test.cpp.Stephane Letz2011-03-311-2/+2
|
* Compiles again on Windows.sletz2010-10-181-26/+26
| | | | git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4067 0c269be4-1314-0410-8aa9-9f06e86f4224
* Add tests to validate intclient.h API.sletz2010-05-071-1/+52
| | | | git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4006 0c269be4-1314-0410-8aa9-9f06e86f4224
* Correct jack_test.v1.9.5sletz2010-02-121-1/+1
| | | | git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3909 0c269be4-1314-0410-8aa9-9f06e86f4224
* Merge branch 'master' into port_register_notification_deferNedko Arnaudov2009-12-091-0/+1
|\
| * Correct rename callback in tests.sletz2009-12-091-0/+1
| | | | | | | | git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3851 0c269be4-1314-0410-8aa9-9f06e86f4224
* | Still call callback in register/unregister if client is active, add test code.Stéphane LETZ2009-12-061-1/+28
|/
* Fix port_rename callback : now both old name and new name are given as ↵sletz2009-12-011-1/+22
| | | | | | parameters. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3835 0c269be4-1314-0410-8aa9-9f06e86f4224
* Correct JackInfoShutdownCallback prototype, two new JackClientProcessFailure ↵sletz2009-11-101-1/+1
| | | | | | and JackClientZombie JackStatus code. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3732 0c269be4-1314-0410-8aa9-9f06e86f4224
* CoreAudio backend now issue a JackInfoShutdownCallback when an unrecoverable ↵sletz2009-10-201-0/+7
| | | | | | error is detected (sampling rate change, stream configuration change…) git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3654 0c269be4-1314-0410-8aa9-9f06e86f4224
* Compiles on Windows again.sletz2009-03-251-48/+48
| | | | git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3465 0c269be4-1314-0410-8aa9-9f06e86f4224
* Cleanup, renaming.sletz2008-11-251-0/+1937
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3119 0c269be4-1314-0410-8aa9-9f06e86f4224