tests/testthat/test-process.R

context("process stuff")

test_that("process stuff", {
  expect_is(getuid(), "integer")
  expect_is(getgid(), "integer")
  expect_is(getpriority(), "integer")
  
  setpgid()
  expect_equal(getpid(), getpgid())
})

Try the unix package in your browser

Any scripts or data that you put into this service are public.

unix documentation built on Oct. 4, 2024, 5:08 p.m.