public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
* SomeOne posted to me that the Process.exitValue() are ....
@ 1999-11-08  3:58 Uncle George
  1999-11-12 20:20 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Uncle George @ 1999-11-08  3:58 UTC (permalink / raw)
  To: mauve-discuss

Well he said they looked funny.  Looking at the documentation, it
appears to be rather vague, but on unix i guess u have to be more
specific.

I had originally though that the exit valus of the subprocess would be a
composite of system & user exit codes. It appears ( right now ) on the
face of it that the user exit code is only returned.

So what does this gotta do with this list ? i'd like to devel a test for
process.exitValue(). I suppose this test will be somewhat 'unix'
centric.

what r my choices.
gat


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SomeOne posted to me that the Process.exitValue() are ....
  1999-11-08  3:58 SomeOne posted to me that the Process.exitValue() are Uncle George
@ 1999-11-12 20:20 ` Tom Tromey
  1999-11-13  2:15   ` Uncle George
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 1999-11-12 20:20 UTC (permalink / raw)
  To: Uncle George; +Cc: mauve-discuss

>>>>> ">" == Uncle George <gatgul@voicenet.com> writes:

>> I had originally though that the exit valus of the subprocess would
>> be a composite of system & user exit codes. It appears ( right now
>> ) on the face of it that the user exit code is only returned.

What are the system and user exit codes?  I have no idea what you
mean.

>> So what does this gotta do with this list ? i'd like to devel a
>> test for process.exitValue(). I suppose this test will be somewhat
>> 'unix' centric.

>> what r my choices.

This is probably hard to do in our framework.
You could try writing a couple of shell scripts, and creating
processes that run them.  Then check the exit status of the process
objects.  (Or you could just use /bin/true and /bin/false, given that
the scripts will probably be limited to Unix anyway.)
You'd probably want to put a new tag to indicate that this test can
only be run on certain systems ("POSIX" comes to mind).

T

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SomeOne posted to me that the Process.exitValue() are ....
  1999-11-12 20:20 ` Tom Tromey
@ 1999-11-13  2:15   ` Uncle George
  0 siblings, 0 replies; 3+ messages in thread
From: Uncle George @ 1999-11-13  2:15 UTC (permalink / raw)
  To: Tom Tromey; +Cc: mauve-discuss

Tom Tromey wrote:

> >>>>> ">" == Uncle George <gatgul@voicenet.com> writes:
>
> >> I had originally though that the exit valus of the subprocess would
> >> be a composite of system & user exit codes. It appears ( right now
> >> ) on the face of it that the user exit code is only returned.
>
> What are the system and user exit codes?  I have no idea what you
> mean.

that would be something like ( as an example of a usr exit code )
exit(7);
an example of a system exit code would be
    char *p = 0xffffffffffffffff;
    *p = 1;                                        ( and now u get a
segfault/ ie  system exit code. )

>
>
> >> So what does this gotta do with this list ? i'd like to devel a
> >> test for process.exitValue(). I suppose this test will be somewhat
> >> 'unix' centric.
>
> >> what r my choices.
>
> This is probably hard to do in our framework.
> You could try writing a couple of shell scripts, and creating
> processes that run them.  Then check the exit status of the process
> objects.  (Or you could just use /bin/true and /bin/false, given that
> the scripts will probably be limited to Unix anyway.)
> You'd probably want to put a new tag to indicate that this test can
> only be run on certain systems ("POSIX" comes to mind).
>
> T

can I submit a 'c' pgm and have java exec a compile of the program ?
    exec("cc -g -o a a.c");
    process a = exec(" a 4");
    if( a.exitValue() != 4 ) inconsistent return codes ?

Its a little harder to 'cause' deliberately core-crashes, but a few can
be done
gat

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-11-13  2:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-08  3:58 SomeOne posted to me that the Process.exitValue() are Uncle George
1999-11-12 20:20 ` Tom Tromey
1999-11-13  2:15   ` Uncle George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).