mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This attempts to make the Canvas API and some related features more likely to throw a Dart exception than crash when exposed to bad input. Depends on rolling tonic to https://fuchsia-review.googlesource.com/c/35742/ which this patch does not yet do, but I wanted to put it up for review to see if it was even a reasonable approach.
20 lines
735 B
Bash
Executable File
20 lines
735 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
out/host_debug_unopt/ftl_unittests
|
|
out/host_debug_unopt/synchronization_unittests
|
|
out/host_debug_unopt/wtf_unittests
|
|
|
|
pushd flutter/testing/dart
|
|
pub get
|
|
popd
|
|
|
|
# Verify that a failing test returns a failure code.
|
|
! out/host_debug_unopt/flutter_tester --disable-observatory --disable-diagnostic --non-interactive --enable-checked-mode --packages=flutter/testing/dart/.packages flutter/testing/fail_test.dart
|
|
|
|
for TEST_SCRIPT in flutter/testing/dart/*.dart; do
|
|
out/host_debug_unopt/flutter_tester --disable-observatory --disable-diagnostic --non-interactive --enable-checked-mode $TEST_SCRIPT
|
|
out/host_debug_unopt/flutter_tester --disable-observatory --disable-diagnostic --non-interactive $TEST_SCRIPT
|
|
done
|