Merge lp:~thumper/unity/fix-881106 into lp:unity
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1760 |
Proposed branch: | lp:~thumper/unity/fix-881106 |
Merge into: | lp:unity |
Diff against target: |
140 lines (+79/-8) 2 files modified
UnityCore/ModelRowAdaptor.cpp (+6/-2) tests/test_model.cpp (+73/-6) |
To merge this branch: | bzr merge lp:~thumper/unity/fix-881106 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
Review via email:
|
Commit message
Don't try to create a std::string with a null pointer.
Description of the change
dee_model_
I'd like to make a test for this, but need to create a fake dee model.
Can someone recommend a very simple way to mock a dee model that has a null string value?
To post a comment you must log in.
DeeModel *model = dee_sequence_ model_new (); set_schema (model, "s", NULL);
dee_model_
dee_model_append (model, NULL);
Should do...