Skip to content

Commit

Permalink
Merge pull request sysprog21#251 from visitorckw/fix/cache-test
Browse files Browse the repository at this point in the history
Fix cache tests fail after adding newline at the end of files
  • Loading branch information
jserv authored Oct 18, 2023
2 parents afcde95 + 35b9dcf commit a36f35e
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/cache/arc/cache-get.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ GET 1
GET 2
PUT 3 3
GET 3
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/arc/cache-lfu-ghost-replace.in
Original file line number Diff line number Diff line change
Expand Up @@ -1282,4 +1282,4 @@ GET 510
GET 511
GET 512
PUT 513 513
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/arc/cache-lfu-replace.in
Original file line number Diff line number Diff line change
Expand Up @@ -1024,4 +1024,4 @@ GET 510
GET 511
GET 512
PUT 513 513
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/arc/cache-lru-ghost-replace.in
Original file line number Diff line number Diff line change
Expand Up @@ -770,4 +770,4 @@ PUT 510 510
PUT 511 511
PUT 512 512
PUT 513 513
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/arc/cache-lru-replace.in
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,4 @@ PUT 254 254
PUT 255 255
PUT 256 256
PUT 257 257
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/arc/cache-new.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NEW
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/arc/cache-put.in
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,4 @@ PUT 254 254
PUT 255 255
PUT 256 256
PUT 257 257
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/lfu/cache-get.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ GET 1
GET 2
PUT 3 3
GET 3
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/lfu/cache-lfu-replace.in
Original file line number Diff line number Diff line change
Expand Up @@ -1024,4 +1024,4 @@ GET 510
GET 511
GET 512
PUT 513 513
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/lfu/cache-new.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NEW
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/lfu/cache-put.in
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,4 @@ PUT 254 254
PUT 255 255
PUT 256 256
PUT 257 257
FREE
FREE
2 changes: 1 addition & 1 deletion tests/cache/test-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int main(int argc, char *argv[])
cache = cache_create(8);
assert(cache);
printf("NEW CACHE\n");
} else if (!strcmp(arr[0], "FREE")) {
} else if (!strcmp(arr[0], "FREE\n")) {
cache_free(cache, free);
printf("FREE CACHE\n");
}
Expand Down
2 changes: 1 addition & 1 deletion tests/map/mt19937.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ uint64_t mt19937_extract()

index = (index + 1) % 624;
return y;
}
}

0 comments on commit a36f35e

Please sign in to comment.