- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newExitCodeFilter (0.1 sec)
-
misc/go_android_exec/exitcode_test.go
package main import ( "regexp" "strings" "testing" ) func TestExitCodeFilter(t *testing.T) { // Write text to the filter one character at a time. var out strings.Builder f, exitStr := newExitCodeFilter(&out) // Embed a "fake" exit code in the middle to check that we don't get caught on it. pre := "abc" + exitStr + "123def" text := pre + exitStr + `1` for i := 0; i < len(text); i++ {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed May 03 14:54:58 UTC 2023 - 2.1K bytes - Viewed (0) -
misc/go_android_exec/main.go
// (https://code.google.com/p/android/issues/detail?id=3254), but it's // still broken on our builders in 2023. Instead, append the exitcode to // the output and parse it from there. filter, exitStr := newExitCodeFilter(os.Stdout) args += "; echo -n " + exitStr + "$?" cmd := adbCmd("exec-out", args) cmd.Stdout = filter // If the adb subprocess somehow hangs, go test will kill this wrapper
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0)