ref: abc7b8dce27323d49315f121a9ef33aff60e5b22
parent: 5d32b4d66a0065bec228c9bbd61835e11718827c
author: Ori Bernstein <[email protected]>
date: Tue Jun 19 17:16:27 EDT 2012
Fix building tests.
--- a/8/main.c
+++ b/8/main.c
@@ -53,7 +53,8 @@
len = strlen(infile);
if (len + strlen(suffix) >= sz)
die("Output file name too long");
- strncpy(buf, infile, len);
+ buf[0] = '\0';
+ strncat(buf, infile, len);
strcat(buf, suffix);
return buf;
--- a/test/hello/bld.sh
+++ b/test/hello/bld.sh
@@ -5,8 +5,8 @@
# testing purposes on every run as things stand.
export PATH=.:$PATH
-export MC=../8/8m
-export MU=../util/muse
+export MC=../../8/8m
+export MU=../../util/muse
export CC=cc
export ASOPT="-g"
@@ -21,9 +21,7 @@
N=`basename $1 .myr`
echo $MC $1 && \
- $MC $1 -I. && \
- mv a.s $N.s && \
- $CC $ASOPT -m32 -c $N.s
+ $MC $1 -I.
}
function assem {