Mercurial > octave
changeset 21456:c1c7748b00fe
system.tst: Fix failing BIST test if /dev/core does not exist on UNIX system
* system.tst: Use exist() to check whether the /dev/core device file exists
before running S_ISLNK test.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 16 Mar 2016 15:12:59 -0700 |
parents | 9d1a5b22e87a |
children | 05ffef4ebf62 |
files | test/system.tst |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/system.tst Wed Mar 16 20:22:17 2016 -0700 +++ b/test/system.tst Wed Mar 16 15:12:59 2016 -0700 @@ -187,7 +187,9 @@ %! if (exist ("/dev/initctl")) %! assert (S_ISFIFO (stat ("/dev/initctl").mode)); %! endif -%! assert (S_ISLNK (lstat ("/dev/core").mode)); +%! if (exist ("/dev/core")) +%! assert (S_ISLNK (lstat ("/dev/core").mode)); +%! endif %! endif %! nm = tempname (); %! fid = fopen (nm, "wb");