Skip to content

Commit e0da6dc

Browse files
author
Зишан Мирза
committed
undo asctime
1 parent 4d07cc9 commit e0da6dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libc/test/src/time/asctime_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "src/errno/libc_errno.h"
10+
#include "src/time/asctime.h"
1011
#include "test/UnitTest/Test.h"
1112
#include "test/src/time/TmHelper.h"
1213

@@ -15,7 +16,7 @@ static inline char *call_asctime(struct tm *tm_data, int year, int month,
1516
int yday) {
1617
LIBC_NAMESPACE::tmhelper::testing::initialize_tm_data(
1718
tm_data, year, month, mday, hour, min, sec, wday, yday);
18-
return asctime(tm_data);
19+
return LIBC_NAMESPACE::asctime(tm_data);
1920
}
2021

2122
TEST(LlvmLibcAsctime, Nullptr) {
@@ -51,7 +52,7 @@ TEST(LlvmLibcAsctime, InvalidWday) {
5152
0, // sec
5253
7, // wday
5354
0); // yday
54-
// ASSERT_ERRNO_EQ(EINVAL);
55+
ASSERT_ERRNO_EQ(EINVAL);
5556
}
5657

5758
// Months are from January to December. Test passing invalid value in month.

0 commit comments

Comments
 (0)