F<t/op/spawnw.t> currently fails on Windows.  The reason is that the
test expects the exit code in the higher byte of the termination
status.  In other words:
        set     S1, 'perl -e "exit(123)"'
        set     I1, 99
        spawnw  I1, S1
        shr     I2, I1, 8
        print   "return code: "
        print   I2
        print   "\n"
        end

On Windows, it is returned as-is, thus it should read:
        set     S1, 'perl -e "exit(123)"'
        set     I1, 99
        spawnw  I1, S1
        print   "return code: "
        print   I1
        print   "\n"
        end

The documentation for spawnw (F<ops/sys.ops>) says:
  Spawn a subprocess and wait for it to finish. The return status,
  which is very system-dependent, goes in $1.

Thus, I guess the place to change is F<t/ops/spawnw.t>.  Should I skip
the original tests on Windows, and add Windows specific ones (that are
run only there)?

Ron


Reply via email to