This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -163,10 +163,18 @@ TEST_F(DepsLogTest, DoubleEntry) {
163
163
164
164
// Verify that adding the new deps works and can be compacted away.
165
165
TEST_F (DepsLogTest, Recompact) {
166
+ const char kManifest [] =
167
+ " rule cc\n "
168
+ " command = cc\n "
169
+ " deps = gcc\n "
170
+ " build out.o: cc\n "
171
+ " build other_out.o: cc\n " ;
172
+
166
173
// Write some deps to the file and grab its size.
167
174
int file_size;
168
175
{
169
176
State state;
177
+ ASSERT_NO_FATAL_FAILURE (AssertParse (&state, kManifest ));
170
178
DepsLog log ;
171
179
string err;
172
180
ASSERT_TRUE (log .OpenForWrite (kTestFilename , &err));
@@ -194,6 +202,7 @@ TEST_F(DepsLogTest, Recompact) {
194
202
int file_size_2;
195
203
{
196
204
State state;
205
+ ASSERT_NO_FATAL_FAILURE (AssertParse (&state, kManifest ));
197
206
DepsLog log ;
198
207
string err;
199
208
ASSERT_TRUE (log .Load (kTestFilename , &state, &err));
@@ -217,6 +226,7 @@ TEST_F(DepsLogTest, Recompact) {
217
226
// recompact.
218
227
{
219
228
State state;
229
+ ASSERT_NO_FATAL_FAILURE (AssertParse (&state, kManifest ));
220
230
DepsLog log ;
221
231
string err;
222
232
ASSERT_TRUE (log .Load (kTestFilename , &state, &err));
You can’t perform that action at this time.
0 commit comments