diff --git a/Makefile b/Makefile index c188b89..4bbad99 100644 --- a/Makefile +++ b/Makefile @@ -39,3 +39,9 @@ util.o: util.c util.h rad50.o: rad50.c rad50.h dumpobj.o: dumpobj.c rad50.h util.h rad50.o: rad50.c rad50.h + +# Since the only test we have so far is for a crash bug, +# just try to assemble. Later, we will need expected/actual tests. +tests: macro11 + ./macro11 tests/* + diff --git a/assemble.c b/assemble.c index a6dfb88..67f0052 100644 --- a/assemble.c +++ b/assemble.c @@ -551,6 +551,8 @@ static int assemble( my_searchenv(macfile, "MCALL", hitfile, sizeof(hitfile)); if (hitfile[0]) macstr = new_file_stream(hitfile); + else + macstr = NULL; } if (macstr != NULL) {