diff options
| -rw-r--r-- | test/119-noimage-patchoat/run | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/119-noimage-patchoat/run b/test/119-noimage-patchoat/run index a5877cb7b6..497dc4ad88 100644 --- a/test/119-noimage-patchoat/run +++ b/test/119-noimage-patchoat/run @@ -39,7 +39,8 @@ return_status1=$? echo "Run -Xnoimage-dex2oat -Xpatchoat:/system/bin/false -Xno-dex-file-fallback" ${RUN} ${flags} ${BPATH} --runtime-option -Xnoimage-dex2oat \ --runtime-option -Xpatchoat:${false_bin} --runtime-option -Xno-dex-file-fallback -return_status2=$? +# This second run is expected to fail: invert the return status of the previous command. +return_status2=$((! $?)) # Make sure we can run with the image file. echo "Run -Ximage-dex2oat" |