aboutsummaryrefslogtreecommitdiff
path: root/libc/test/src/stdio/fprintf_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/test/src/stdio/fprintf_test.cpp')
-rw-r--r--libc/test/src/stdio/fprintf_test.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libc/test/src/stdio/fprintf_test.cpp b/libc/test/src/stdio/fprintf_test.cpp
index 9a3c1f2..08b3179 100644
--- a/libc/test/src/stdio/fprintf_test.cpp
+++ b/libc/test/src/stdio/fprintf_test.cpp
@@ -21,10 +21,10 @@
namespace printf_test {
#ifndef LIBC_COPT_STDIO_USE_SYSTEM_FILE
-using __llvm_libc::fclose;
-using __llvm_libc::ferror;
-using __llvm_libc::fopen;
-using __llvm_libc::fread;
+using LIBC_NAMESPACE::fclose;
+using LIBC_NAMESPACE::ferror;
+using LIBC_NAMESPACE::fopen;
+using LIBC_NAMESPACE::fread;
#else // defined(LIBC_COPT_STDIO_USE_SYSTEM_FILE)
using ::fclose;
using ::ferror;
@@ -43,16 +43,16 @@ TEST(LlvmLibcFPrintfTest, WriteToFile) {
int written;
constexpr char simple[] = "A simple string with no conversions.\n";
- written = __llvm_libc::fprintf(file, simple);
+ written = LIBC_NAMESPACE::fprintf(file, simple);
EXPECT_EQ(written, 37);
constexpr char numbers[] = "1234567890\n";
- written = __llvm_libc::fprintf(file, "%s", numbers);
+ written = LIBC_NAMESPACE::fprintf(file, "%s", numbers);
EXPECT_EQ(written, 11);
constexpr char format_more[] = "%s and more\n";
constexpr char short_numbers[] = "1234";
- written = __llvm_libc::fprintf(file, format_more, short_numbers);
+ written = LIBC_NAMESPACE::fprintf(file, format_more, short_numbers);
EXPECT_EQ(written, 14);
ASSERT_EQ(0, printf_test::fclose(file));
@@ -78,7 +78,7 @@ TEST(LlvmLibcFPrintfTest, WriteToFile) {
ASSERT_EQ(printf_test::ferror(file), 0);
written =
- __llvm_libc::fprintf(file, "Writing to a read only file should fail.");
+ LIBC_NAMESPACE::fprintf(file, "Writing to a read only file should fail.");
EXPECT_LT(written, 0);
ASSERT_EQ(printf_test::fclose(file), 0);