aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/stdlib.go
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/stdlib.go')
-rw-r--r--testdata/stdlib.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/testdata/stdlib.go b/testdata/stdlib.go
index e6d6677b6..55237ff68 100644
--- a/testdata/stdlib.go
+++ b/testdata/stdlib.go
@@ -5,6 +5,7 @@ import (
"math/rand"
"os"
"strings"
+ "syscall"
)
func main() {
@@ -13,6 +14,14 @@ func main() {
fmt.Println("stdout:", os.Stdout.Name())
fmt.Println("stderr:", os.Stderr.Name())
+ // Package syscall, this mostly checks whether the calls don't trigger an error.
+ syscall.Getuid()
+ syscall.Geteuid()
+ syscall.Getgid()
+ syscall.Getegid()
+ syscall.Getpid()
+ syscall.Getppid()
+
// package math/rand
fmt.Println("pseudorandom number:", rand.Int31())