summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* otp: Make tests pass when run in source treeLukas Larsson2022-01-2124-17/+83
|
* ftp: Fix generated certificates to work with new opensslLukas Larsson2022-01-211-8/+23
|
* ftp: Remove unused test fileLukas Larsson2022-01-212-476/+1
|
* otp: Skip tests that fail in gh actionsLukas Larsson2022-01-217-7/+30
|
* otp: Add DEVELOPMENT howto and complete `make test` supportLukas Larsson2022-01-211-1/+4
| | | | | | | | | | | | | This commit polishes a lot of the make system to be more robust and hopefully user friendly. A new DEVELOPMENT howto guide has been added with instructions on how to work with the Erlang/OTP code and the `make test` functionality has been fixed so that it should work for all applications. In order to solve the problem of some applications relying on being tested using a release, each application has been instrumented in its Makefile so that it knows if a release has to be done or not.
* ct: Do not flush output when exiting ct_runLukas Larsson2022-01-211-3/+3
| | | | | | | | | | When running tests the state of the system may not always be able to flush all ports and we do not want the system to hang when that happens. An example of this happening is when the peer_SUITE has connections to dead nodes that have been been disconnected yet.
* Merge pull request #5581 from ↵Lukas Larsson2022-01-214-35/+212
|\ | | | | | | | | garazdawi/lukas/ct/add-file-and-line-to-surefire/OTP-17881/OTP-17882 ct: Add correct file and line to surefire report
| * ct: Add tests for surefire file and lineLukas Larsson2022-01-212-11/+59
| |
| * ct: Fix surefire logs for parallel testcasesLukas Larsson2022-01-211-7/+13
| |
| * ct: Fix crash in ct_hooks_lockLukas Larsson2022-01-211-1/+5
| | | | | | | | | | | | If a process with a hook lock crashes when it is the only process with a lock we should return to an unlocked state and continue as normal.
| * ct: Optimize surefire cth to keep state in seperate processLukas Larsson2022-01-211-31/+91
| | | | | | | | | | | | | | | | | | When running a suite with many processes the cth state could become very large. Since the state is copied to the testcase process each time a cth is called that because very expensive. So instead we create a seperate process that keeps the state of the surefire cth so that it does not have to be copied.
| * ct: Add correct file and line to surefire reportLukas Larsson2022-01-191-4/+63
| |
* | Merge branch 'maint'Dan Gudmundsson2022-01-211-18/+143
|\ \
| * \ Merge pull request #5557 from avtobiff/etop-dynamic-widthDan Gudmundsson2022-01-211-18/+143
| |\ \ | | | | | | | | | | | | | | | | observer/etop: Calculate field width with available columns OTP-17880
| | * | observer/etop: Calculate field width with available columnsPer Andersson2022-01-201-18/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The field widths are calculated depending on what the underlying io driver reports as max column width. The fields are allowed to use the column width they need if they column budget allows it. The field widths are deducted in priority order and if there is space left the calculated width is used otherwise the default field width is used. If the underlying io driver can't give any column width, the default column width budget of 89 characters is used. This is the legacy hard coded width, plus two spaces between reductions, memory, and msgq fields. Fixes #5080 Signed-off-by: Per Andersson <avtobiff@foo.nu>
* | | | Merge pull request #5525 from bucko909/fix--gen_event--crash--messageIngela Andin2022-01-212-10/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | fix param ordering of gen_event crash OTP-17878
| * | | | suggested test improvementsDavid Buckley2022-01-201-7/+15
| | | | |
| * | | | fix param ordering of gen_event crashDavid Buckley2022-01-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently we get error messages like the following logged: ``` 2021-11-09T09:27:03.949055+00:00 error: Generic event handler ... crashed. Installed: .... Last event: {badarg,[{ets,match_object,[...],[{error_info,#{cause => id,module => erl_stdlib_errors}}]}|...]}. State: {event,...}. Reason: {state,...}. ``` This is very confusing (caused us to go on a rabbit hunt through our own code for transposed `State`/`Reason` in `{stop,...}` return values).
* | | | | Merge branch 'bjorn/peer-fixes/OTP-17720'Björn Gustavsson2022-01-211-12/+12
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * bjorn/peer-fixes/OTP-17720: peer.xml: Correct since tags
| * | | | | peer.xml: Correct since tagsBjörn Gustavsson2021-11-111-12/+12
| | | | | |
* | | | | | Merge branch 'hans/crypto/deprecate_dyn_iv/OTP-17870'Hans Nilsson2022-01-203-4/+19
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hans/crypto/deprecate_dyn_iv/OTP-17870: Update deprecations crypto: Deprecate crypto_dyn_iv_init/3 and crypto_dyn_iv_update/3
| * | | | | | Update deprecationsHans Nilsson2022-01-191-4/+8
| | | | | | |
| * | | | | | crypto: Deprecate crypto_dyn_iv_init/3 and crypto_dyn_iv_update/3Hans Nilsson2022-01-192-0/+11
| | | | | | |
* | | | | | | Merge branch 'maint'Hans Nilsson2022-01-202-2/+87
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | * maint: Fix eldap extensibleMatch dnAttributes option
| * | | | | | Merge pull request #5615 from xadhoom/fix_eldap_dn_attributesHans Nilsson2022-01-202-2/+87
| |\ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Fix eldap extensibleMatch dnAttributes option OTP-17877
| | * | | | | Fix eldap extensibleMatch dnAttributes optionMatteo Brancaleoni2022-01-172-2/+87
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the ldap ASN1 the dnAttributes should be a bool, instead it was generated as a string. Also add a couple of test to verify the filter behaves correctly.
* | | | | | Merge pull request #5604 from bjorng/bjorn/fix-inlined-fc/GH-5513/OTP-17860Björn Gustavsson2022-01-209-60/+165
|\ \ \ \ \ \ | | | | | | | | | | | | | | Eliminate confusing `case_clause` exception
| * | | | | | Eliminate confusing `case_clause` exceptionBjörn Gustavsson2022-01-149-60/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consider this module: -module(bug). -export([foo/0]). foo() -> fun(a) -> ok end(b). The call to the fun will always fail, which will be noted by the compiler: 1> c(bug). bug.erl:5:5: Warning: no clause will ever match % 5| fun(a) -> ok end(b). % | ^ {ok,bug} What is unexpected is that the exception that is raised is not a `function_clause` exception: 2> bug:foo(). ** exception error: no case clause matching {b} in function bug:foo/0 (bug.erl, line 5) This confusing `case_clause` exception started to appear in OTP 24 because of 72675baaa9fd30 (#4545) that inlines funs that are immediately used. Before OTP 24, when the fun was not inlined, the exception would be: 2> bug:foo(). ** exception error: no function clause matching bug:'-foo/0-fun-0-'(b) (bug.erl, line 5) The reason that `function_clause` exceptions are rewritten to `case_clause` exceptions in inlined code is to avoid the even more confusing and misleading exception: 2> bug:foo(). ** exception error: no function clause matching bug:foo(b) (bug.erl, line 5) This is confusing because it seems that `foo/0` was called with one argument. To reduce the confusion, this commmit ensures that `function_clause` exceptions in inlined code remains `function_clause` exceptions, but with a generated name that makes it clear that the `function_clause` exception occurred in a fun: 2> bug:foo(). ** exception error: no function clause matching bug:'-foo/0-inlined-0-'(b) (bug.erl, line 5) Fixes #5513
* | | | | | | Merge pull request #5622 from HansN/hans/update_deprecations_scriptHans Nilsson2022-01-201-4/+2
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | Hans/update deprecations script
| * | | | | | update_deprecations: The script silently discarded errors in file:writeHans Nilsson2022-01-191-3/+1
| | | | | | |
| * | | | | | update_deprecations: The script didn't handle '-deprecated([f/1])'Hans Nilsson2022-01-191-1/+1
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | which caused the atom 'undefined' to be the Text in update_deprecations:make_xml_info/2. According to /home/uabhnil/Projects/OTP/otp1/HOWTO/DEPRECATE.md that 'undefined' should be changed to "see the documentation for details." by that script. The internal wiki page has the same opinion as the script.
* | | | | | Merge pull request #5599 from garazdawi/lukas/erts/fix-terminal-nx-nl/OTP-17779Lukas Larsson2022-01-201-2/+34
|\ \ \ \ \ \ | | | | | | | | | | | | | | erts: Fix ttsl driver xn followed by nl
| * | | | | | erts: Fix ttsl driver xn followed by nlLukas Larsson2022-01-111-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The terminal would incorrectly emit " \b" when the next wrapping character was a \r|\n. I think this is the correct behaviour, but it is hard to test on all terminals. Closes #5403
* | | | | | | Merge branch 'john/compiler/misc-fixes'John Högberg2022-01-192-6/+15
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * john/compiler/misc-fixes: beam_types: Fix silly mistake in external type mapping beam_ssa_type: Fix cosmetic issue in get_tuple_element beam_ssa_type: M:F(...) will crash when M or F aren't atoms
| * | | | | | beam_types: Fix silly mistake in external type mappingJohn Högberg2022-01-141-1/+1
| | | | | | |
| * | | | | | beam_ssa_type: Fix cosmetic issue in get_tuple_elementJohn Högberg2022-01-141-1/+1
| | | | | | |
| * | | | | | beam_ssa_type: M:F(...) will crash when M or F aren't atomsJohn Högberg2022-01-141-4/+13
| | | | | | |
* | | | | | | Merge branch 'maint'Jakub Witczak2022-01-189-165/+331
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | |
| * | | | | | Merge pull request #5607 from u3s/kuba/ssl/password_fun_keyfile/OTP-17816Jakub Witczak2022-01-189-165/+331
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | public_key,ssl: add password fun for decoding keyfiles OTP-17816
| | * | | | | | public_key,ssl: add password fun for decoding keyfilesJakub Witczak2022-01-149-165/+331
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementing password fun option for ssl connect API This change allows password option to accept as a value either a string or a fun. Added specific tests and documentation. The motivation for this change is to better protect a private key. If the private key is protected by password the password may be retreived using user supplied function therefore enabling storing password in a secure vault or something similar.
* | | | | | | | Merge branch 'maint'Sverker Eriksson2022-01-181-1/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Merge branch 'sverker/filename-basedir-darwin-docfix' into maintSverker Eriksson2022-01-181-1/+1
| |\ \ \ \ \ \ \
| | * | | | | | | stdlib: Fix doc for filename:basedir(user_log,..) on DarwinSverker Eriksson2022-01-171-1/+1
| | | | | | | | |
* | | | | | | | | Add detailed instructions for updating Unicode Character DatabaseEksperimental2022-01-181-9/+43
| | | | | | | | |
* | | | | | | | | Merge pull request #5590 from kianmeng/fix-typos-in-lib-xmerlLars Thorsén2022-01-1816-115/+115
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix typos in lib/xmerl
| * | | | | | | | | Fix typos in lib/xmerlKian-Meng Ang2022-01-0716-115/+115
| | | | | | | | | |
* | | | | | | | | | Merge pull request #5595 from maintenance-beam/unicode_14.0.0Dan Gudmundsson2022-01-1811-475/+1578
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update Unicode to 14.0.0 OTP-17869
| * | | | | | | | | | Update Unicode to version 14.0.0Maintenance App2022-01-1011-475/+1578
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an automated commit created by the Maintenance project https://github.com/eksperimental/maintenance
* | | | | | | | | | Merge branch 'maint'Micael Karlberg2022-01-141-52/+257
|\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | |
| * | | | | | | | | Merge branch 'bmk/kernel/20220112/test_tweaking' into maintMicael Karlberg2022-01-141-36/+212
| |\ \ \ \ \ \ \ \ \