Andrew Thompson
caad1f8c83
Fix eunit tests to "start" compiler and syntax_tools
This is just silly busy-work since they're library applications, but
whatever.
vor 13 Jahren
Andrew Thompson
c21f1bdd9b
Better crash reports for processes started via proc_lib, Fixes #31
vor 13 Jahren
Andrew Thompson
16fb55890c
Correct printing of strings in mixed error reports (reported by Bryan Hughes)
Since the lager_format rewrite, ~p and ~w now have different behaviour
with regard to printing lists as strings.
vor 13 Jahren
Andrew Thompson
5068e29383
Fix a couple minor issues with length calculation, add tests
vor 13 Jahren
Andrew Thompson
121c4c5241
Initial implementation of 'tracing'
vor 13 Jahren
Andrew Thompson
de5d84e349
Fix how the name/pid of the process is printed in crash reports
Before this fix, the code assumed that processes without a registered
name omitted the {registered_name, X} tuple in the crash report. In
actual fact, process_info/2 returns [] when the process has no
registered name, so unregistered processes were being printed with a
"name" of "[]". This corrects the code to print the Pid in this case
instead.
vor 13 Jahren
Andrew Thompson
4dfee06cd9
Make tests less dependant on timer:sleeps to function correctly
vor 13 Jahren
Andrew Thompson
53d5de448c
Fix term printing in errors to properly show embedded lists
The ~w formatting used before was not printing lists embedded in other
terms. This change uses trunc_io to print those terms safely and without
potentially introducing linebreaks (like ~p would)
vor 13 Jahren
Andrew Thompson
0cc9e25224
Remove incorrect test case
vor 13 Jahren
Scott Lystig Fritchie
042e210a9d
Remove application:unload() calls from test code
vor 13 Jahren
Scott Lystig Fritchie
83c2a412ab
Mash in the remainder of adt-error-format-protection branch
vor 13 Jahren
Scott Lystig Fritchie
4872b82885
Move EUnit sleep & sync stuff to new custom_sleep() func
vor 13 Jahren
Andrew Thompson
bf5861a548
Tests for the crash log
vor 13 Jahren
Andrew Thompson
3fe861c348
Lots of tests for the file backend
vor 13 Jahren
Scott Lystig Fritchie
4148670b18
Fix sporadic EUnit test failures: try to sync via gen_event:which_handlers(), increase some sleep times
vor 13 Jahren
Andrew Thompson
40b0e2d484
Record milliseconds with timestamps, make console less verbose by default
az558
vor 13 Jahren
Andrew Thompson
0d3e45a39e
Plug some large error_logger message holes with trunc_io
vor 13 Jahren
Andrew Thompson
d0338f11a8
Use format_reason in supervisor child exit messages, too
vor 13 Jahren
Andrew Thompson
157d676562
Handle ETS table count system limit
vor 13 Jahren
Andrew Thompson
077f218cd9
Make logging not crash when lager is not running
vor 13 Jahren
Andrew Thompson
675006ec86
Make tests quiet
vor 13 Jahren
Andrew Thompson
474bfc9e36
Fix failing test
vor 13 Jahren
Andrew Thompson
886d410eb9
Make highest log level be 0; add some helper macros
vor 14 Jahren
Andrew Thompson
ae4f678406
Don't wrap the level argument in a list for no reason
vor 14 Jahren
Andrew Thompson
a6cbc19712
Rework supervisor tree to be more sane
vor 14 Jahren
Andrew Thompson
0859c90b06
Default the error_logger redirect to be on, log to the 'log' dir
vor 14 Jahren
Andrew Thompson
f8afb3d8b1
Tests for emfile and system_limit formatting
vor 14 Jahren
Andrew Thompson
e9abf79aac
Handle 'single term' error_logger reports
vor 14 Jahren
Andrew Thompson
5b9a4c6161
Support warning messages, put commas between terms in report messages
vor 14 Jahren
Andrew Thompson
a1fe3f4496
Remove riak_err as a dep; fix some warnings
vor 14 Jahren
Andrew Thompson
6916a66d0f
Added badfun support, and tests for progress reports
vor 14 Jahren
Andrew Thompson
83ed81eca5
Tests for error_logger:error_msg and friends
vor 14 Jahren
Andrew Thompson
7696cc937d
More tests
vor 14 Jahren
Andrew Thompson
bfe72cb17d
Add some tests to test logging crashes
vor 14 Jahren
Andrew Thompson
279fef80b4
Cleanup test module a little
vor 14 Jahren
Andrew Thompson
b65e005ebe
More tests
vor 14 Jahren
Andrew Thompson
0bb86d52b8
Add a test backend for running with eunit
vor 14 Jahren