Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Dehm
briar
Commits
6e046649
Verified
Commit
6e046649
authored
8 years ago
by
Torsten Grote
Browse files
Options
Downloads
Patches
Plain Diff
Print stack trace for uncaught exceptions during tests for easier debugging
parent
5674ee2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
briar-android-tests/src/test/java/org/briarproject/BriarIntegrationTest.java
+0
-2
0 additions, 2 deletions
.../src/test/java/org/briarproject/BriarIntegrationTest.java
briar-tests/src/org/briarproject/BriarTestCase.java
+1
-0
1 addition, 0 deletions
briar-tests/src/org/briarproject/BriarTestCase.java
with
1 addition
and
2 deletions
briar-android-tests/src/test/java/org/briarproject/BriarIntegrationTest.java
+
0
−
2
View file @
6e046649
...
...
@@ -9,8 +9,6 @@ import static org.junit.Assert.assertEquals;
public
abstract
class
BriarIntegrationTest
extends
BriarTestCase
{
// TODO maybe we could add uncaught exception handlers for other threads here (#670)
protected
void
assertGroupCount
(
MessageTracker
tracker
,
GroupId
g
,
long
msgCount
,
long
unreadCount
,
long
latestMsg
)
throws
DbException
{
...
...
This diff is collapsed.
Click to expand it.
briar-tests/src/org/briarproject/BriarTestCase.java
+
1
−
0
View file @
6e046649
...
...
@@ -10,6 +10,7 @@ public abstract class BriarTestCase {
// Ensure exceptions thrown on worker threads cause tests to fail
UncaughtExceptionHandler
fail
=
new
UncaughtExceptionHandler
()
{
public
void
uncaughtException
(
Thread
thread
,
Throwable
throwable
)
{
throwable
.
printStackTrace
();
fail
();
}
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment