Skip to content

Commit

Permalink
Revert "debug: start investigating missing sbrk"
Browse files Browse the repository at this point in the history
This reverts commit 39feff5cd566ea6b874f2064fa1d663546c07934.

Signed-off-by: Alp Sayin <[email protected]>
  • Loading branch information
alpsayin committed Oct 18, 2024
1 parent a9a9df3 commit 4f0f6c9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/lib/c_lib/common/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,29 +1109,20 @@ ZTEST(libc_common, test_time_asctime)
.tm_year = 124, /* Year (current year - 1900) */
};

#if !CONFIG_MICROBLAZE || CONFIG_NEWLIB_LIBC
/* These functions call snprintf: nothing interesting other than that */
zassert_not_null(asctime_r(&tp, buf));
#endif
zassert_equal(strncmp("Fri Jun 1 14:30:10 2024\n", buf, sizeof(buf)), 0);

zassert_not_null(asctime(&tp));
zassert_equal(strncmp("Fri Jun 1 14:30:10 2024\n", asctime(&tp), sizeof(buf)), 0);

if (IS_ENABLED(CONFIG_COMMON_LIBC_ASCTIME_R)) {
tp.tm_wday = 8;
#if !CONFIG_MICROBLAZE || CONFIG_NEWLIB_LIBC
/* These functions call snprintf: nothing interesting other than that */
zassert_is_null(asctime_r(&tp, buf));
#endif
zassert_is_null(asctime(&tp));

tp.tm_wday = 5;
tp.tm_mon = 12;
#if !CONFIG_MICROBLAZE || CONFIG_NEWLIB_LIBC
/* These functions call snprintf: nothing interesting other than that */
zassert_is_null(asctime_r(&tp, buf));
#endif
zassert_is_null(asctime(&tp));
}
}
Expand Down Expand Up @@ -1171,10 +1162,7 @@ ZTEST(libc_common, test_time_ctime)
#ifdef CONFIG_NATIVE_LIBC
setenv("TZ", "UTC", 1);
#endif
#if !CONFIG_MICROBLAZE || CONFIG_NEWLIB_LIBC
/* These functions call snprintf: nothing interesting other than that */
zassert_not_null(ctime_r(&test1, buf));
#endif
zassert_equal(strncmp("Thu Jun 13 06:26:40 2024\n", buf, sizeof(buf)), 0);

zassert_not_null(ctime(&test1));
Expand Down

0 comments on commit 4f0f6c9

Please sign in to comment.