@@ -1109,29 +1109,20 @@ ZTEST(libc_common, test_time_asctime)
1109
1109
.tm_year = 124 , /* Year (current year - 1900) */
1110
1110
};
1111
1111
1112
- #if !CONFIG_MICROBLAZE || CONFIG_NEWLIB_LIBC
1113
- /* These functions call snprintf: nothing interesting other than that */
1114
1112
zassert_not_null (asctime_r (& tp , buf ));
1115
- #endif
1116
1113
zassert_equal (strncmp ("Fri Jun 1 14:30:10 2024\n" , buf , sizeof (buf )), 0 );
1117
1114
1118
1115
zassert_not_null (asctime (& tp ));
1119
1116
zassert_equal (strncmp ("Fri Jun 1 14:30:10 2024\n" , asctime (& tp ), sizeof (buf )), 0 );
1120
1117
1121
1118
if (IS_ENABLED (CONFIG_COMMON_LIBC_ASCTIME_R )) {
1122
1119
tp .tm_wday = 8 ;
1123
- #if !CONFIG_MICROBLAZE || CONFIG_NEWLIB_LIBC
1124
- /* These functions call snprintf: nothing interesting other than that */
1125
1120
zassert_is_null (asctime_r (& tp , buf ));
1126
- #endif
1127
1121
zassert_is_null (asctime (& tp ));
1128
1122
1129
1123
tp .tm_wday = 5 ;
1130
1124
tp .tm_mon = 12 ;
1131
- #if !CONFIG_MICROBLAZE || CONFIG_NEWLIB_LIBC
1132
- /* These functions call snprintf: nothing interesting other than that */
1133
1125
zassert_is_null (asctime_r (& tp , buf ));
1134
- #endif
1135
1126
zassert_is_null (asctime (& tp ));
1136
1127
}
1137
1128
}
@@ -1171,10 +1162,7 @@ ZTEST(libc_common, test_time_ctime)
1171
1162
#ifdef CONFIG_NATIVE_LIBC
1172
1163
setenv ("TZ" , "UTC" , 1 );
1173
1164
#endif
1174
- #if !CONFIG_MICROBLAZE || CONFIG_NEWLIB_LIBC
1175
- /* These functions call snprintf: nothing interesting other than that */
1176
1165
zassert_not_null (ctime_r (& test1 , buf ));
1177
- #endif
1178
1166
zassert_equal (strncmp ("Thu Jun 13 06:26:40 2024\n" , buf , sizeof (buf )), 0 );
1179
1167
1180
1168
zassert_not_null (ctime (& test1 ));
0 commit comments