Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSpuriousWakeupsNeverHangSemasleep (0.21 sec)

  1. src/runtime/semasleep_test.go

    	"testing"
    	"time"
    )
    
    // Issue #27250. Spurious wakeups to pthread_cond_timedwait_relative_np
    // shouldn't cause semasleep to retry with the same timeout which would
    // cause indefinite spinning.
    func TestSpuriousWakeupsNeverHangSemasleep(t *testing.T) {
    	if *flagQuick {
    		t.Skip("-quick")
    	}
    	t.Parallel() // Waits for a program to sleep for 1s.
    
    	exe, err := buildTestProg(t, "testprog")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top