wa-lang.org/wazero@v1.0.2/imports/wasi_snapshot_preview1/sched_test.go (about)

     1  package wasi_snapshot_preview1
     2  
     3  import (
     4  	"testing"
     5  
     6  	"wa-lang.org/wazero/internal/testing/require"
     7  )
     8  
     9  // Test_schedYield only tests it is stubbed for GrainLang per #271
    10  func Test_schedYield(t *testing.T) {
    11  	log := requireErrnoNosys(t, functionSchedYield)
    12  	require.Equal(t, `
    13  --> proxy.sched_yield()
    14  	--> wasi_snapshot_preview1.sched_yield()
    15  	<-- ENOSYS
    16  <-- (52)
    17  `, log)
    18  }