Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_fails_on_race (4.88 sec)

  1. src/runtime/race/output_test.go

    	done := make(chan bool)
    	x := 0; _ = x
    	go func() {
    		x = 42
    		done <- true
    	}()
    	x = 43
    	<-done
    }
    `, []string{`
    ==================
    exit status 66
    `}},
    
    	{"test_fails_on_race", "test", "", "atexit_sleep_ms=0", `
    package main_test
    import "testing"
    func TestFail(t *testing.T) {
    	done := make(chan bool)
    	x := 0
    	_ = x
    	go func() {
    		x = 42
    		done <- true
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 20:44:25 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top