Fix host tests.

The regex being overspecified meant that host tests were not properly
replacing the dummy.o when linking, meaning all of the tests that were
running were running nothing but `int main() {}`.

The good news is that there weren't any failing tests hiding behind
this on Linux.

Change-Id: I9bea82ff1fefdf156d68a58689e532807c8d999b
This commit is contained in:
Dan Albert
2015-05-12 10:05:09 -07:00
parent 15d0bc5725
commit 90ed14b6a2

View File

@@ -9,7 +9,7 @@ if [ $? -eq 0 ]; then
echo $ARGS | perl -ne 's/\S+\.cpp\b/%SOURCE%/; print' \
| perl -ne 's/\S+\.o\b/%OUT%/; print' > $DIR/cxx.cmds
else
echo $ARGS | perl -ne 's/out\/target\/product\/\S+\/EXECUTABLES\/\S+\.o\b/%SOURCE%/; print' \
echo $ARGS | perl -ne 's/out\/\S+\/EXECUTABLES\/\S+\.o\b/%SOURCE%/; print' \
| perl -ne 's/-o\s+\S+\b/-o %OUT%/; print' > $DIR/link.cmds
fi