Skip to content

Commit 35e4ad1

Browse files
author
Arnd R. Strube
committed
Manipulate some tests to provoke the problem described in issue cpputest#829
1 parent d2e237a commit 35e4ad1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/CppUTestExt/MockStrictOrderTest.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ TEST_GROUP(MockStrictOrderTest)
3636
}
3737
};
3838

39-
4039
TEST(MockStrictOrderTest, OrderObserved)
4140
{
4241
mock().strictOrder();
@@ -95,12 +94,12 @@ TEST(MockStrictOrderTest, orderViolatedWorksHierarchically)
9594
MockCallOrderFailure expectedFailure(mockFailureTest(), expectations);
9695

9796
mock("bla").expectOneCall("foo1");
98-
mock().expectOneCall("foo1");
99-
mock().expectOneCall("foo2");
97+
mock("foo").expectOneCall("foo1");
98+
mock("foo").expectOneCall("foo2");
10099

101100
mock("bla").actualCall("foo1");
102-
mock().actualCall("foo2");
103-
mock().actualCall("foo1");
101+
mock("foo").actualCall("foo2");
102+
mock("foo").actualCall("foo1");
104103

105104
mock().checkExpectations();
106105
CHECK_EXPECTED_MOCK_FAILURE(expectedFailure);
@@ -121,7 +120,7 @@ TEST(MockStrictOrderTest, orderViolatedWithinAScope)
121120
mock("scope").actualCall("foo2");
122121
mock("scope").actualCall("foo1");
123122

124-
mock("scope").checkExpectations();
123+
mock().checkExpectations();
125124
CHECK_EXPECTED_MOCK_FAILURE(expectedFailure);
126125
}
127126

0 commit comments

Comments
 (0)