Update of /cvsroot/alsa/alsa-lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005
Modified Files:
code.c queue_timer.c
Log Message:
'make check' fails on a Slackware 8.1 system with gcc-2.95.3 due to three
minor problems (one missing #define/#include statement, two misplaced
variable delarations) in test/code.c and test/queue_timer.c.
Index: code.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/test/code.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- code.c 1 Mar 2003 14:24:42 -0000 1.11
+++ code.c 27 Jan 2004 19:49:48 -0000 1.12
@@ -5,6 +5,10 @@
#include <sched.h>
#include <sys/time.h>
+#ifndef __builtin_expect
+#include <linux/compiler.h>
+#endif
+
#define rdtscll(val) \
__asm__ __volatile__("rdtsc" : "=A" (val))
@@ -212,6 +216,9 @@
int i, t;
unsigned long long begin, end, diff, diffS, diff0, diff1, diff1_mmx, diff2;
double cpu_clock = detect_cpu_clock();
+ s16 *dst = malloc(sizeof(*dst) * size);
+ s32 *sum = calloc(size, sizeof(*sum));
+ s16 **srcs = malloc(sizeof(*srcs) * n);
setscheduler();
#ifndef CONFIG_SMP
@@ -226,9 +233,6 @@
}
if (argc > 4)
cache_size = atoi(argv[4]) * 1024;
- s16 *dst = malloc(sizeof(*dst) * size);
- s32 *sum = calloc(size, sizeof(*sum));
- s16 **srcs = malloc(sizeof(*srcs) * n);
for (i = 0; i < n; i++) {
int k;
s16 *s;
Index: queue_timer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/test/queue_timer.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- queue_timer.c 18 Dec 2003 12:14:17 -0000 1.1
+++ queue_timer.c 27 Jan 2004 19:49:48 -0000 1.2
@@ -74,6 +74,7 @@
snd_seq_queue_status_t *status;
const snd_seq_real_time_t *rtime;
struct timeval tv, diff, diffdiff;
+ struct timespec ts;
snd_seq_queue_status_alloca(&status);
@@ -115,7 +116,6 @@
fprintf(stderr, "\n");
// sleep(1);
- struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 500000000;
nanosleep(&ts, 0);
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog