Skip to content

Commit

Permalink
#0: augment failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-TT committed Dec 10, 2024
1 parent 99044d6 commit e6c2c3a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/tt_metal/tt_metal/debug_tools/dprint/test_eth_cores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,20 @@ static void RunTest(DPrintFixture* fixture, Device* device, bool active) {
);
fixture->RunProgram(device, program);

{
std::printf("gold='%s'\n", golden_output.c_str());
std::printf("output='");
FILE* f = fopen(DPrintFixture::dprint_file_name.c_str(), "r");
for (;;) {
int c = std::fgetc(f);
if (c == EOF) {
break;
}
std::fputc(c, f);
}
fclose(f);
std::printf("'\n");
}
// Check the print log against golden output.
EXPECT_TRUE(
FilesMatchesString(
Expand Down

0 comments on commit e6c2c3a

Please sign in to comment.