Skip to content

Commit

Permalink
[libc] Fix vfprintf test colliding with fprintf
Browse files Browse the repository at this point in the history
Sometimes the vfprintf test was failing, I suspect that's due to it
using the same filename as the fprintf test. This patch fixes that
problem by changing the filename of the vfprintf output file.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D157523
  • Loading branch information
michaelrj-google committed Aug 9, 2023
1 parent ade0aa6 commit 8b37431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc/test/src/stdio/vfprintf_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int call_vfprintf(::FILE *__restrict stream, const char *__restrict format,
}

TEST(LlvmLibcVFPrintfTest, WriteToFile) {
const char *FILENAME = "fprintf_output.test";
const char *FILENAME = "vfprintf_output.test";
auto FILE_PATH = libc_make_test_file_path(FILENAME);

::FILE *file = printf_test::fopen(FILE_PATH, "w");
Expand Down

0 comments on commit 8b37431

Please sign in to comment.