Scope test fixture throws exception when scope uses cache_directory()

Bug #1401717 reported by Scott Sweeny
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scopes-api (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When using TypedScopeFixture to test a scope that makes use of cache_directory any tests will always fail with the following message (regardless of where the cache_directory call is in the scope code):

C++ exception with description "unity::LogicException: ScopeBase::cache_directory() cannot be called from constructor" thrown in the test body.

A similar problem with scope_directory() was solved by adding a set_scope_directory() method to the fixture.

Revision history for this message
Michi Henning (michihenning) wrote :

A fix for this is in trunk already, dated 29 Nov. It probably hasn't made it into your image yet.

Changed in unity-scopes-api (Ubuntu):
status: New → Fix Committed
Revision history for this message
Scott Sweeny (ssweeny) wrote :

Given that this is part of the test framework and not functionality run on the phone itself is there any chance of this fix being backported to utopic?

Changed in unity-scopes-api (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.