aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2012-09-24dialyzer: Do not output warnings for unused funsHans Bolinder
Dialyzer no longer outputs warnings for unused anonymous functions ("funs"). Warnings are still output for unused functions. Funs in functions with -nowarn_unused_function attributes generated warnings for unused functions. Unused list comprehensions also generated warnings for unused funs.
2012-09-21Merge branch 'siri/reltool/misc-bugs/OTP-10012'Siri Hansen
* siri/reltool/misc-bugs/OTP-10012: [reltool] Use application name from .app file instead of directory name [reltool] Keep order from rel spec when sorting used and included applications [reltool] Automatically add included applications in rel file [reltool] Make reltool:install/2 work on windows [reltool] Allow incl_cond=derived on module level
2012-09-21[reltool] Use application name from .app file instead of directory nameSiri Hansen
In the first traversal of library directories, reltool used only the directory names in order to figure out application names. This would succeed if the directory name was AppName only or AppName-AppVsn and AppVsn consisted of integers separated by dots only. If the AppVsn has any other format, then reltool would not find the correct application name. With this commit, reltool will first look for a .app file and use the .app file name as the application name. This will allow different formats of the version identifier in the directory name. Note that reltool can still not sort (and select the latest) amongst version identifiers of other format than integers separated by dots.
2012-09-20Merge branch 'bjorn/ct-fix-silent-death/OTP-9769'Björn Gustavsson
* bjorn/ct-fix-silent-death/OTP-9769: Teach test_server to report severe errors to common_test test_server_ctrl: Present "cannot create log dir" errors more neatly test_server_ctrl: Don't die in stop_extra_tools/1
2012-09-20Merge branch 'jv/filelib_recursion_wildcard'Henrik Nord
* jv/filelib_recursion_wildcard: Allow ** in filelib:wildcard OTP-10431
2012-09-20Merge branch 'bjorn/ts-fixes'Björn Gustavsson
* bjorn/ts-fixes: ts: Remove the non-working ts:clean/0,1 commands ts: Remove the obsolete ts:index/0 command ts: Remove the unused module ts_selftest ts_run: Make errors from ct:run_test/1 visible
2012-09-20ts: Remove the non-working ts:clean/0,1 commandsBjörn Gustavsson
The commands no longer work now that ts is a wrapper for common_test (instead of for test_server), and no one seems to have missed them.
2012-09-20ts: Remove the obsolete ts:index/0 commandBjörn Gustavsson
The ts:index/0 command only works with test_server log directories. The functionality to generate an overview of all tests run is now provided by common_test itself.
2012-09-20ts: Remove the unused module ts_selftestBjörn Gustavsson
2012-09-20ts_run: Make errors from ct:run_test/1 visibleBjörn Gustavsson
The ts wrapper module invokes common_test by calling the ct:run_test/1 function using "erl -eval Cmd". Since ct:run_test/1 is intended to by called from the Erlang shell, it returns error values rather than printing them. Therefore, when an error occurs, users of ts may not see any error indication. Introduce the ts_run:ct_run_test/2 wrapper which invokes ct:run_test/1 and prints out any error that occurs.
2012-09-19Merge branch 'henrik/undef-fix/OTP-10428'Henrik Nord
* henrik/undef-fix/OTP-10428: ignore calls to gs* modules if it is not built
2012-09-19ignore calls to gs* modules if it is not builtHenrik Nord
2012-09-19Merge branch 'bjorn/kernel/global-resolve-function-fix/OTP-10419'Björn Gustavsson
* bjorn/kernel/global-resolve-function-fix/OTP-10419: global: Allow "tuple funs" as resolve functions
2012-09-19Teach test_server to report severe errors to common_testBjörn Gustavsson
If a severe error occurs in test_server (e.g. failing to write to log files), test_server would terminate without commont_test knowing about it. Since ct_run can now return an exit code, it is important that common_test is aware of severe problem so that it can indicate that an error has occurred.
2012-09-19test_server_ctrl: Present "cannot create log dir" errors more neatlyBjörn Gustavsson
2012-09-19test_server_ctrl: Don't die in stop_extra_tools/1Björn Gustavsson
If it is not possible for test_server_ctrl:start_log_file/0 to create the log file directory or log files, then stop_extra_tools/1 (called from init_tester/10) is also likely to crash and hide the original error reason. That will be confusing to the user. Therefore, catch the call to stop_extra_tools/1.
2012-09-17global: Allow "tuple funs" as resolve functionsBjörn Gustavsson
Commit de7e01c958ff7c9e6da4034a53567a30a4ae5792 removed support for tuple funs. To still allow resolve functions for global:{re_}register_name/3 to be specified as {M,F}, we'll need to translate {M,F} to an external fun. Also update the documentation to mention that the use of {M,F} to specify a resolve function is deprecated, and to add a recommendation to use an external fun.
2012-09-17[reltool] Keep order from rel spec when sorting used and included applicationsSiri Hansen
The rel specification now dictates the order in which included and used applications are loaded/started by the boot file. If the applications are not specified in the rel spec, then the order from the .app file is used. This was a bug earlier reported on systools, and is now also implemented in reltool. Example: If a .app file specified {applications,[x,y]} {included_applications,[b,c]} And the reltool.config has {rel, "myrel", "1.0", [a,y,x,c,b]} Then the boot file will load/start y before x and c before b. Earlier x would always be started before y and b always before c due to the order in the .app file.
2012-09-17Allow ** in filelib:wildcardJosé Valim
Two adjacent * used as a single pattern will match all files and zero or more directories and subdirectories.
2012-09-17Merge branch 'bjorn/stdlib/filelib-wildcard/OTP-6874'Björn Gustavsson
* bjorn/stdlib/filelib-wildcard/OTP-6874: Fix filelib:wildcard/2
2012-09-14[reltool] Automatically add included applications in rel fileSiri Hansen
If a 'rel' spec in the reltool config does not contain all applications that are listed as {applications,Applications} in a .app file, then these applications are autmatically added when creating the .rel file. For 'included_applications', the behaviour was not the same. I.e. if a 'rel' spec in the reltool config did not contain all applications that are listed as {included_applications,InclApplications} in a .app file, then reltool would fail with reason "Undefined applications" when creating the .rel file. This has been corrected, so both 'applications' and 'included_applications' are now automatically added if not already in the 'rel' spec. I.e. for an application 'z', if z.app contains {applications,[stdlib,kernel,x]} {included_applications,[y]} then reltool configuration {rel, "myrel", "1.0", [z]} will cause the same .rel file as {rel, "myrel", "1.0", [stdlib,kernel,x,y,z]}
2012-09-14Merge branch 'siri/dont-allow-modvsn-in-app-file/OTP-10417'Siri Hansen
* siri/dont-allow-modvsn-in-app-file/OTP-10417: Don't allow {Mod,Vsn} in modules list in .app file
2012-09-13Don't allow {Mod,Vsn} in modules list in .app fileSiri Hansen
It was possible to insert {Mod::atom(),Vsn::term()} instead of Mod::atom() in the modules list in a .app file. This was not visible in the documentation of .app files, but it was visible in the documentation of application:load/[1,2] (where the .app file term can be used directly as first argument). The Vsn part was never used, so this possibility has now been removed.
2012-09-12Merge remote branch 'upstream/maint'Peter Andersson
2012-09-12Merge branch 'maint-r15' into maintPeter Andersson
2012-09-12Merge branch 'siri/sasl/dont_destroy_test_dir/OTP-10394'Siri Hansen
* siri/sasl/dont_destroy_test_dir/OTP-10394: Skip release_handler test related to symlinks on windows
2012-09-12[reltool] Make reltool:install/2 work on windowsSiri Hansen
The erl.ini file generated by reltool:install/2 faulty pointed out $ROOT/bin as Bindir. This is now changed to $ROOT/erts-Vsn/bin. Also, backslashes in erl.ini needed to be escaped.
2012-09-12Fix filelib:wildcard/2Björn Gustavsson
filelib:wildcard("some/relative/path/*.beam", Path) would fail to match any file. That is, filelib:wildcard/2 would not work if the first component of the pattern did not contain any wildcard characters. Noticed-by: Samuel Rivas
2012-09-11Skip release_handler test related to symlinks on windowsSiri Hansen
2012-09-11Merge branch 'siri/sasl/dont_destroy_test_dir/OTP-10394'Siri Hansen
* siri/sasl/dont_destroy_test_dir/OTP-10394: Make sure release_handler_SUITE does not mess up sasl test directory
2012-09-11[reltool] Allow incl_cond=derived on module levelSiri Hansen
According to documentation it should be allowed to set incl_cond=include|exclude|derived, but if set to derived on module level, reltool_server would crash. This has been corrected.
2012-09-11Merge branch 'ia/public_key/ssh_decode-comment-issue/OTP-9361'Ingela Anderton Andin
* ia/public_key/ssh_decode-comment-issue/OTP-9361: public_key: ssh_decode now handles comments, at the end of the line, containing withespaces correctly
2012-09-11Merge branch 'ia/public_key-missing-sha224/OTP-9362'Ingela Anderton Andin
* ia/public_key-missing-sha224/OTP-9362: public_key: Add missing references to sha224 and sha384
2012-09-10Make sure release_handler_SUITE does not mess up sasl test directorySiri Hansen
release_handler_SUITE:otp_9864 deleted parts of the release_handler_SUITE_data directory so the test suite could not be executed twice without re-installation. This has been corrected.
2012-09-10Update release notesErlang/OTP
2012-09-10Merge branch 'peppe/common_test/shell_mode_broken' into maint-r15Erlang/OTP
* peppe/common_test/shell_mode_broken: Fix broken interactive mode
2012-09-10Fix broken interactive modePeter Andersson
2012-09-10Merge branch 'sverk/gcc-atomic-config-bug'Sverker Eriksson
* sverk/gcc-atomic-config-bug: erts: Fix gcc atomic bug in ethread.h
2012-09-10Merge branch 'siri/stdlib/escript_SUITE/OTP-10393'Siri Hansen
* siri/stdlib/escript_SUITE/OTP-10393: Extend watchdog, and add report_error option to compile:file in escript_SUITE
2012-09-10Merge branch 'maint'Lukas Larsson
* maint: Do not build jinterface test if there is no jinterface Escape whitespace in path
2012-09-10Merge branch 'lukas/jinterface/whitespace_test_fix' into maintLukas Larsson
* lukas/jinterface/whitespace_test_fix: Do not build jinterface test if there is no jinterface Escape whitespace in path
2012-09-10Merge branch 'maint'Lukas Larsson
* maint: Make sure io is flushed when driver is closed
2012-09-10Merge branch 'lukas/erts/win32_flush_console_io/OTP-10325' into maintLukas Larsson
* lukas/erts/win32_flush_console_io/OTP-10325: Make sure io is flushed when driver is closed
2012-09-06Merge branch 'maint'Björn-Egil Dahlberg
2012-09-05Update version numbersBjörn-Egil Dahlberg
2012-09-05public_key: Add missing references to sha224 and sha384Sverker Eriksson
2012-09-05public_key: ssh_decode now handles comments, at the end of the line, ↵Ingela Anderton Andin
containing withespaces correctly
2012-09-05Merge branch 'siri/sasl/rb_SUITE/OTP-10387'Siri Hansen
* siri/sasl/rb_SUITE/OTP-10387: Fix rb_SUITE failing tests
2012-09-05Merge branch 'siri/runtime_tools/remove-inviso-rest'Siri Hansen
* siri/runtime_tools/remove-inviso-rest: Remove all traces of inviso application from runtime_tools
2012-09-05Extend watchdog, and add report_error option to compile:file in escript_SUITESiri Hansen
1. escript_SUITE:create_and_extract sometimes fails with timetrap timeout on solars. Watchdog is extended to avoid this. 2. escript_SUITE:archive_scritp sometimes fails with compilation error. Option 'report_errors' is added to compile:file in order to get more information.