mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Make test_disk and test_fps plugins compile for the simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14201 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5e8e9565a2
commit
5fee03c128
2 changed files with 14 additions and 0 deletions
|
@ -114,9 +114,11 @@ static bool test_fs(void)
|
|||
|
||||
log_init();
|
||||
log_text("test_disk WRITE&VERIFY", true);
|
||||
#ifndef SIMULATOR
|
||||
rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz",
|
||||
*rb->cpu_frequency);
|
||||
log_text(text_buf, true);
|
||||
#endif
|
||||
log_text("----------------------", true);
|
||||
rb->snprintf(text_buf, sizeof text_buf, "Data size: %dKB", (TEST_SIZE>>10));
|
||||
log_text(text_buf, true);
|
||||
|
@ -297,9 +299,11 @@ static bool test_speed(void)
|
|||
rb->memset(audiobuf, 'T', audiobuflen);
|
||||
log_init();
|
||||
log_text("test_disk SPEED TEST", true);
|
||||
#ifndef SIMULATOR
|
||||
rb->snprintf(text_buf, sizeof(text_buf), "CPU clock: %ld Hz",
|
||||
*rb->cpu_frequency);
|
||||
log_text(text_buf, true);
|
||||
#endif
|
||||
log_text("--------------------", true);
|
||||
|
||||
/* File creation speed */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue