File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Test nqp::op file operations.
4
4
5
- plan (88 );
5
+ plan (89 );
6
6
7
7
ok ( nqp ::stat(' CREDITS' , nqp ::const::STAT_EXISTS) == 1 , ' nqp::stat exists' );
8
8
ok ( nqp ::stat(' AARDVARKS' , nqp ::const::STAT_EXISTS) == 0 , ' nqp::stat not exists' );
@@ -235,14 +235,15 @@ nqp::unlink($tmp-file);
235
235
my $ is-windows := $ output ne " % NQP_SHELL_TEST_ENV_VAR %\n " ;
236
236
237
237
if $ is-windows {
238
- skip (" symlink not tested on Windows" , 5 );
238
+ skip (" symlink not tested on Windows" , 6 );
239
239
}
240
240
else {
241
241
nqp :: unlink ($ test-file ~ ' -symlink' ) if nqp ::stat($ test-file ~ ' -symlink' , nqp ::const::STAT_EXISTS);
242
242
$ fh := nqp :: open ($ test-file , ' w' );
243
243
nqp ::printfh($ fh , ' Hello' );
244
244
nqp ::closefh($ fh );
245
245
nqp :: symlink ($ test-file , $ test-file ~ ' -symlink' );
246
+ ok (nqp ::readlink($ test-file ~ ' -symlink' ) eq $ test-file , ' nqp::readlink' );
246
247
ok (nqp ::stat($ test-file ~ ' -symlink' , nqp ::const::STAT_EXISTS), ' the symbolic link should exist' );
247
248
ok (nqp ::lstat($ test-file ~ ' -symlink' , nqp ::const::STAT_EXISTS), ' the symbolic link should exist' );
248
249
if nqp ::getcomp(' nqp' ). backend. name eq ' parrot' {
You can’t perform that action at this time.
0 commit comments