From ff62e1d0edf65d5103dde914db780f9c10371b92 Mon Sep 17 00:00:00 2001 From: Androbin Date: Wed, 29 Nov 2017 01:18:05 -0800 Subject: More Shell Cleaning - Part Two @damienmg Here are a few more changes. (`third_party` only) Closes #4164. PiperOrigin-RevId: 177278511 --- third_party/ijar/test/ijar_test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'third_party/ijar') diff --git a/third_party/ijar/test/ijar_test.sh b/third_party/ijar/test/ijar_test.sh index 0b9a92fb2d..eacf6e42bb 100755 --- a/third_party/ijar/test/ijar_test.sh +++ b/third_party/ijar/test/ijar_test.sh @@ -41,7 +41,7 @@ shift source ${DIR}/testenv.sh || { echo "testenv.sh not found!" >&2; exit 1; } function cleanup() { - rm -fr "$TEST_TMPDIR"/* + rm -fr "${TEST_TMPDIR:-sentinel}"/* } trap cleanup EXIT @@ -235,7 +235,7 @@ function test_ijar_output() { # Check that compile-time constants in A are still annotated as such in ijar: - $JAVAP -classpath $TEST_TMPDIR/classes -c B | grep -sq ldc2_w.*123 || + $JAVAP -classpath $TEST_TMPDIR/classes -c B | grep -sq 'ldc2_w.*123' || fail "ConstantValue not propagated to class B!" -- cgit v1.2.3