Ovid wrote:
> Am I doing something really stupid here?  Could I be using shared
memory incorrectly?

What happens if you explicitly set the test number to what it should be?

    if ( !defined( my $child_pid = fork() ) ) {
        diag "Cannot fork: $!";
    }
    elsif ( !$child_pid ) {
        ok 1, 'in the child';
        shmwrite( $id, $test->current_test, 0, 60 ) or die $!;
    }
    else {
        waitpid( $child_pid, 0 );
        shmread( $id, $test_num, 0, 60 ) or die $!;
        $test->current_test( 3 );  # <---------------- hard wired
        ok 1, 'in the parent';
    }

Just to see what happens.

-- 
Andy Armstrong, Hexten

Reply via email to