runtime tests hello modified to return 0 and
vecadd modified to replace printf with vx_print_str.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
struct hello {
|
||||
int a;
|
||||
@@ -15,4 +14,7 @@ int main()
|
||||
{
|
||||
nameing.a = 20;
|
||||
int b;
|
||||
printf("Passed!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -216,13 +216,13 @@ int main (int argc, char **argv) {
|
||||
int exitcode = 0;
|
||||
for (i=0; i<SIZE; ++i) {
|
||||
if (C[i] != (A[i] + B[i])) {
|
||||
printf("Failed!\n");
|
||||
vx_print_str("Failed!\n");
|
||||
exitcode = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (i == SIZE) {
|
||||
printf("Ok!\n");
|
||||
vx_print_str("Ok!\n");
|
||||
}
|
||||
|
||||
// Clean up
|
||||
|
||||
Reference in New Issue
Block a user