Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for _fail (0.2 sec)

  1. src/clean.bat

    L9:set GOBUILDFAIL=0
    L10:
    L11:go tool dist env -w -p >env.bat
    L12:if errorlevel 1 goto fail
    L13:call .\env.bat
    L14:del env.bat
    L15:echo.
    L16:
    L17:if exist %GOTOOLDIR%\dist.exe goto distok
    L18:echo cannot find %GOTOOLDIR%\dist; nothing to clean
    L19:goto fail
    L20::distok
    L21:
    L22:"%GOBIN%\go" clean -i std
    L23:"%GOBIN%\go" tool dist clean
    L24:"%GOBIN%\go" clean -i cmd
    L25:
    L26:goto end
    L27:
    L28::fail
    L29:set GOBUILDFAIL=1
    L30:
    L31::end
    L32:if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%
    ...
    Batch File
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu May 12 16:59:17 GMT 2022
    - 600 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue18146.go

    		cmd.Stdout = buf
    		cmd.Stderr = buf
    		if err := cmd.Start(); err != nil {
    			// We are starting so many processes that on
    			// some systems (problem seen on Darwin,
    			// Dragonfly, OpenBSD) the fork call will fail
    			// with EAGAIN.
    			if pe, ok := err.(*os.PathError); ok {
    				err = pe.Err
    			}
    			if se, ok := err.(syscall.Errno); ok && (se == syscall.EAGAIN || se == syscall.EMFILE) {
    				time.Sleep(time.Millisecond)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Sep 05 23:35:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    	br.ReadRune()
    	br.Peek(1)
    	if err := br.UnreadRune(); err == nil {
    		t.Error("UnreadRune didn't fail after Peek")
    	}
    }
    
    func TestNoUnreadByteAfterPeek(t *testing.T) {
    	br := NewReader(strings.NewReader("example"))
    	br.ReadByte()
    	br.Peek(1)
    	if err := br.UnreadByte(); err == nil {
    		t.Error("UnreadByte didn't fail after Peek")
    	}
    }
    
    func TestNoUnreadRuneAfterDiscard(t *testing.T) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/operand_test.go

    			parser.start(lex.Tokenize(test.input))
    			addr := obj.Addr{}
    			parser.operand(&addr)
    		})
    
    		switch {
    		case err == nil:
    			t.Errorf("fail at %s: got no errors; expected %s\n", test.input, test.error)
    		case !strings.Contains(err.Error(), test.error):
    			t.Errorf("fail at %s: got %s; expected %s", test.input, err, test.error)
    		}
    	}
    }
    
    func testOperandParser(t *testing.T, parser *Parser, tests []operandTest) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    but guarantees never to return nil. If C's malloc indicates out of memory,
    the helper function crashes the program, like when Go itself runs out
    of memory. Because C.malloc cannot fail, it has no two-result form
    that returns errno.
    
    # C references to Go
    
    Go functions can be exported for use by C code in the following way:
    
    	//export MyFunction
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  6. src/archive/zip/reader_test.go

    	}
    }
    
    func TestCompressedDirectory(t *testing.T) {
    	// Empty Java JAR, with a compressed directory with uncompressed size 0
    	// which should not fail.
    	//
    	// Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    	// --------  ------  ------- ---- ---------- ----- --------  ----
    	//        0  Defl:N        2   0% 12-01-2022 16:50 00000000  META-INF/
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  7. misc/ios/detect.go

    	"fmt"
    	"os"
    	"os/exec"
    	"strings"
    )
    
    func main() {
    	udids := getLines(exec.Command("idevice_id", "-l"))
    	if len(udids) == 0 {
    		fail("no udid found; is a device connected?")
    	}
    
    	mps := detectMobileProvisionFiles(udids)
    	if len(mps) == 0 {
    		fail("did not find mobile provision matching device udids %q", udids)
    	}
    
    	fmt.Println("# Available provisioning profiles below.")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  8. src/archive/tar/stat_unix.go

    	sys, ok := fi.Sys().(*syscall.Stat_t)
    	if !ok {
    		return nil
    	}
    	h.Uid = int(sys.Uid)
    	h.Gid = int(sys.Gid)
    	if doNameLookups {
    		// Best effort at populating Uname and Gname.
    		// The os/user functions may fail for any number of reasons
    		// (not implemented on that platform, cgo not enabled, etc).
    		if u, ok := userMap.Load(h.Uid); ok {
    			h.Uname = u.(string)
    		} else if u, err := user.LookupId(strconv.Itoa(h.Uid)); err == nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. api/go1.2.txt

    pkg testing, type CoverBlock struct, Stmts uint16
    pkg testing, type TB interface, Error(...interface{})
    pkg testing, type TB interface, Errorf(string, ...interface{})
    pkg testing, type TB interface, Fail()
    pkg testing, type TB interface, FailNow()
    pkg testing, type TB interface, Failed() bool
    pkg testing, type TB interface, Fatal(...interface{})
    pkg testing, type TB interface, Fatalf(string, ...interface{})
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  10. misc/ios/README

    the bundle id before installing a new app. If the uninstalled app is the last app by
    the developer identity, the device might also remove the permission to run apps from
    that developer, and the exec wrapper will fail to install the new app. To avoid that,
    install another app with the same developer identity but with a different bundle id.
    That way, the permission to install apps is held on to while the primary app is
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Dec 29 21:49:26 GMT 2020
    - 2.7K bytes
    - Viewed (0)
Back to top