Hello,
My understanding is that we can use JRun to send arguments and get return codes, but I'm having problems with the return codes.
I'm using code from the wiki. It sends *ARGS*, receives arguments and reprints them, and everything looks good. For good measure, I send a *PASSED* to let myself know the test worked, something I can parse later on. I then return *STOP*, and JRun terminates.
Now, my problem. I've read that I can also get an application-specific return code, but this part doesn't work. I'm trying to pass "*STOP*4\n"; it detects the stop and prints exit value 1. The value 42 returns exit value 2. My code looks like this:
Am I missing something here?
My understanding is that we can use JRun to send arguments and get return codes, but I'm having problems with the return codes.
I'm using code from the wiki. It sends *ARGS*, receives arguments and reprints them, and everything looks good. For good measure, I send a *PASSED* to let myself know the test worked, something I can parse later on. I then return *STOP*, and JRun terminates.
Now, my problem. I've read that I can also get an application-specific return code, but this part doesn't work. I'm trying to pass "*STOP*4\n"; it detects the stop and prints exit value 1. The value 42 returns exit value 2. My code looks like this:
Am I missing something here?