runtime tests hello modified to return 0 and

vecadd modified to replace printf with vx_print_str.
This commit is contained in:
Malik Burton 2020-09-15 18:46:45 -04:00
parent dca5853191
commit 959270def1
2 changed files with 6 additions and 4 deletions

View file

@ -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;
}

View file

@ -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