Skip to content

Commit 84ac82c

Browse files
committed
more work
1 parent 6ef69df commit 84ac82c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
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
#

examples/sdl2/android/androidCrashTest/ZigSDLActivity.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
import 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
*/
1214
public class ZigSDLActivity extends SDLActivity {
1315
@Override

0 commit comments

Comments
 (0)