package integrationtests_test import ( "strings" "testing" "github.com/langgenius/dify-sandbox/internal/core/runner/types" "github.com/langgenius/dify-sandbox/internal/service" ) func TestSysFork(t *testing.T) { // Test case for sys_fork resp := service.RunPython3Code(` import os os.fork() `, "", &types.RunnerOptions{}) if resp.Code != 0 { t.Error(resp) } if !strings.Contains(resp.Data.(*service.RunCodeResponse).Stderr, "operation not permitted") { t.Error(resp.Data.(*service.RunCodeResponse).Stderr) } }