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 {
|
struct hello {
|
||||||
int a;
|
int a;
|
||||||
@@ -15,4 +14,7 @@ int main()
|
|||||||
{
|
{
|
||||||
nameing.a = 20;
|
nameing.a = 20;
|
||||||
int b;
|
int b;
|
||||||
|
printf("Passed!\n");
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -216,13 +216,13 @@ int main (int argc, char **argv) {
|
|||||||
int exitcode = 0;
|
int exitcode = 0;
|
||||||
for (i=0; i<SIZE; ++i) {
|
for (i=0; i<SIZE; ++i) {
|
||||||
if (C[i] != (A[i] + B[i])) {
|
if (C[i] != (A[i] + B[i])) {
|
||||||
printf("Failed!\n");
|
vx_print_str("Failed!\n");
|
||||||
exitcode = 1;
|
exitcode = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i == SIZE) {
|
if (i == SIZE) {
|
||||||
printf("Ok!\n");
|
vx_print_str("Ok!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean up
|
// Clean up
|
||||||
|
|||||||
Reference in New Issue
Block a user