File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
examples/sdl2/android/androidCrashTest Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 8888 # script: adb install ./zig-out/bin/sdl-zig-demo.apk && adb shell am start -S -W -n com.zig.sdl2/com.zig.sdl2.ZigSDLActivity
8989 script : |
9090 adb install ./zig-out/bin/sdl-zig-demo.apk
91- adb shell monkey --kill-process-after-error --monitor-native-crashes --pct-touch 100 -p com.zig.sdl2 -v 50
91+ adb shell monkey --kill-process-after-error --monitor-native-crashes --pct-touch 100 -p com.zig.sdl2 --throttle 1000 -v 2
9292 working-directory : examples/sdl2
9393
9494 #
Original file line number Diff line number Diff line change 55import android .util .AndroidRuntimeException ;
66
77/**
8- * A sample wrapper class that just calls SDLActivity
8+ * Used by ci.yml to make the application crash if an error occurs initializing your application.
99 *
10- * Used for testing only to detect if it crashes
10+ * This allows the following commands to catch crash errors on startup:
11+ * - adb install ./zig-out/bin/sdl-zig-demo.apk
12+ * - adb shell monkey --kill-process-after-error --monitor-native-crashes --pct-touch 100 -p com.zig.sdl2 -v 50
1113 */
1214public class ZigSDLActivity extends SDLActivity {
1315 @ Override
You can’t perform that action at this time.
0 commit comments