diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2007-08-05 20:41:49 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2007-08-05 20:41:49 +0000 |
| commit | 5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e (patch) | |
| tree | 7227e0a2e4a3cb0f5cbe61cc19c447dda95171f4 /apps/plugins/test_disk.c | |
| parent | 5e8e9565a252e4962587e79ca94fb574c31d1c26 (diff) | |
| download | rockbox-5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e.zip rockbox-5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e.tar.gz rockbox-5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e.tar.bz2 rockbox-5fee03c1287d0e6981e8da0ce05b8a6f70c53b2e.tar.xz | |
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
Diffstat (limited to 'apps/plugins/test_disk.c')
| -rw-r--r-- | apps/plugins/test_disk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c index 5799f4c..45dc598 100644 --- a/apps/plugins/test_disk.c +++ b/apps/plugins/test_disk.c @@ -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 */ |