Skip to content

Conversation

@fglock
Copy link
Owner

@fglock fglock commented Oct 29, 2025

Three fixes to get chdir.t working:

  1. Exporter.java: Add support for :DEFAULT export tag

    • :DEFAULT now correctly expands to @export contents
    • Fixes File::Spec::Functions import issue
  2. perl_test_runner.pl: Fix working directory for t/ tests

    • Tests in t/op/, t/base/, etc. now run from t/ directory
    • Allows tests to require './test.pl' correctly
  3. Directory.java: Complete chdir() implementation

    • chdir('') now fails with ENOENT (errno 2)
    • chdir() checks HOME, LOGDIR, SYS$LOGIN env vars
    • SYS$LOGIN only checked on VMS, not darwin/macOS
    • Proper errno values: ENOENT (2) and EINVAL (22)
    • fchdir throws 'unimplemented' error for filehandles

Test Results:

  • Before: 0/0 tests (compilation error)
  • After: 51/51 tests passing (100%)

Three fixes to get chdir.t working:

1. Exporter.java: Add support for :DEFAULT export tag
   - :DEFAULT now correctly expands to @export contents
   - Fixes File::Spec::Functions import issue

2. perl_test_runner.pl: Fix working directory for t/ tests
   - Tests in t/op/, t/base/, etc. now run from t/ directory
   - Allows tests to require './test.pl' correctly

3. Directory.java: Complete chdir() implementation
   - chdir('') now fails with ENOENT (errno 2)
   - chdir() checks HOME, LOGDIR, SYS$LOGIN env vars
   - SYS$LOGIN only checked on VMS, not darwin/macOS
   - Proper errno values: ENOENT (2) and EINVAL (22)
   - fchdir throws 'unimplemented' error for filehandles

Test Results:
- Before: 0/0 tests (compilation error)
- After: 51/51 tests passing (100%)
@fglock fglock merged commit 01c8600 into master Oct 29, 2025
2 checks passed
@fglock fglock deleted the fix-chdir-test branch October 29, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants