Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSetsockoptString (0.19 sec)

  1. src/syscall/syscall_unix_test.go

    	}
    	str := err.Error() // used to crash on Linux
    	t.Logf("Seek: %v", str)
    	if str == "" {
    		t.Fatalf("Seek(-1, 0, 0) return error with empty message")
    	}
    }
    
    func TestSetsockoptString(t *testing.T) {
    	// should not panic on empty string, see issue #31277
    	err := syscall.SetsockoptString(-1, 0, 0, "")
    	if err == nil {
    		t.Fatalf("SetsockoptString: did not fail")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 9.4K bytes
    - Viewed (0)
Back to top