Skip to content

Commit eb7eb82

Browse files
committed
another print statement
1 parent 887d534 commit eb7eb82

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tool-openssl/pkeyutl_test.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,13 @@ TEST_F(PKeyUtlTest, VerifyTest) {
112112
ASSERT_TRUE(result);
113113

114114
// Check that the output contains "Signature Verified Successfully"
115-
fprintf(stderr, "DEBUG: About to read output file\n");
115+
fprintf(stderr, "DEBUG: About to open output file with ScopedFILE first\n");
116+
{
117+
ScopedFILE out_file(fopen(out_path, "rb"));
118+
ASSERT_TRUE(out_file);
119+
// Just opening and closing the file
120+
}
121+
fprintf(stderr, "DEBUG: Now reading with ReadFileToString\n");
116122
std::string output = ReadFileToString(out_path);
117123
fprintf(stderr, "DEBUG: Output file content length: %zu\n", output.length());
118124
ASSERT_NE(output.find("Signature Verified Successfully"), std::string::npos);

0 commit comments

Comments
 (0)