Mercurial > octave
changeset 21985:e2e0e353c3ef
Only test getuid/getgid functions on systems that implement them (bug #48312)
* system.tst: Only test geteuid, getuid, getegid, and getgid on systems that
imlement those functions.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Mon, 27 Jun 2016 16:27:07 -0700 |
parents | 6187b9ce8477 |
children | 9e992b9ffc5f |
files | test/system.tst |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/test/system.tst Mon Jun 27 12:39:46 2016 -0700 +++ b/test/system.tst Mon Jun 27 16:27:07 2016 -0700 @@ -238,19 +238,23 @@ %!error <... getppid> getppid (1) -%!assert (geteuid () >= 0) +%!testif HAVE_GETEUID +%! assert (geteuid () >= 0) %!error <... geteuid> geteuid (1) -%!assert (getuid () >= 0) +%!testif HAVE_GETUID +%! assert (getuid () >= 0) %!error <... getuid> getuid (1) -%!assert (getegid () >= 0) +%!testif HAVE_GETEGID +%! assert (getegid () >= 0) %!error <... getegid> getegid (1) -%!assert (getgid () >= 0) +%!testif HAVE_GETGID +%! assert (getgid () >= 0) %!error <... getgid> getgid (1)