diff --git a/go/tests/entrypoint.sh b/go/tests/entrypoint.sh index 863b93d7c..d903e164d 100755 --- a/go/tests/entrypoint.sh +++ b/go/tests/entrypoint.sh @@ -26,6 +26,11 @@ if test "$s"; then exit 1 fi +if find . -type f -name '*.go' -exec grep -qE '\tprint(ln)?\(' {} +; then + echo "print & println builtins are forbidden" + exit 1 +fi + # Check restrictions if test "$ALLOWED_FUNCTIONS" && test "$EXPECTED_FILES"; then IFS=' '