nasa / osal

The Core Flight System (cFS) Operating System Abstraction Layer (OSAL)
Apache License 2.0
546 stars 213 forks source link

shell-test does not appear to work on VxWorks #939

Closed jphickey closed 3 years ago

jphickey commented 3 years ago

Describe the bug The "shell-test" program attempts to run the following command:

echo -n "ValueToEchoInTheFile"

But this does not appear to work correctly on VxWorks 6.9. The test reports:

[ FAIL] 01.005 shell-test.c:83 - Read: 
echo -n "ValueToEch, Written: ValueToEchoInTheFile

To Reproduce Enable shell and run "shell-test" on MCP750

Expected behavior Test should pass

System observed on: MCP750 VxWorks 6.9

Additional context I'm not familiar enough with VxWorks, it seems the interactive shell does not even have an "echo" command so I am not sure how this is expected to work to begin with.

If run directly on the shell as a test, I get:

-> echo -n "ValueToEchoInTheFile"
C interp: unknown symbol name 'echo'.

So it is not clear to me how this is expected to work.

Reporter Info Joseph Hickey, Vantage Systems, Inc.

jphickey commented 3 years ago

Although this is a "bug" - since shell functionality is typically disabled by default it is not clear how much of a priority this is. In the default config the shell function returns OS_ERR_NOT_IMPLEMENTED and the test is skipped so there is no issue. One has to re-enable shell and set other non-default parameters just to get to the point where this happens.

jphickey commented 3 years ago

I think I have a idea of what's going on here....