run.sh 613 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. # Copyright 2019-2020 Yury Gribov
  3. #
  4. # The MIT License (MIT)
  5. #
  6. # Use of this source code is governed by MIT license that can be
  7. # found in the LICENSE.txt file.
  8. # This test checks that exceptions are successfully propagated
  9. # through implib wrappers.
  10. set -eu
  11. cd $(dirname $0)
  12. if test -n "${1:-}"; then
  13. ARCH="$1"
  14. fi
  15. . ../common.sh
  16. export LD_LIBRARY_PATH=.:${LD_LIBRARY_PATH:-}
  17. $CC $CFLAGS -shared -fPIC interposed.c
  18. ${PYTHON:-} ../../implib-gen.py -q --target $TARGET a.out 2>err.log
  19. if ! diff err.ref err.log; then
  20. echo "Warnings are not emitted for data symbols"
  21. exit 1
  22. fi
  23. echo SUCCESS