Re: Rt Tests and gnulinux Tests
| Newsgroups | gmane.science.robotics.orocos.user |
|---|---|
| Organization | KU Leuven |
| Message-ID | <[email protected]> |
On Tuesday 21 January 2003 16:33, [email protected] wrote: > Real Time Orocos Core, now works, but we have more questions about the > orocos tests When we run a test in gnulinux system we can see a lot of > text like : > > ( e.g. test_FifoRT-gnulinux) > > [[[ test_FifoRT loading... ]]] > > received 18 bytes: Test message > > [[[ test_FifoRT unloaded.. ]]] > > and so on... > but when we run a test in rtai system we see only messages like : > > You are root > Module test_FifoRT-rt loaded with warnings (no GPL license) > PASS: test_FifoRT-rt.sh > .. > > Is this normal? why cannot we see a significant output? type the command 'dmesg' after the test or inspect the file /var/log/messages (as root) There is a mix of old and new tests. The old ones do not necesarily produce output, but PASS means that : a) the module could be loaded b) things did not crash Actually, any standard test should only notify that it has been loaded and unloaded with or without error so that the user is not overloaded by unneeded messages. > > Can you explain to us the role of module.c ? > > int init_module( void ) <-- ok > { > DO_GLOBAL_CTORS(); <--What does this function do? you need to do this ALWAYS in init_module if you want to use C++ programs. It makes that you can use global variables or static class members. The function calls their constructors. > > initFramework(); <--startup the Framework, but what does > exactly do ? look in the files InitFramework.cpp, moduleStartStop.c RunFramework.cpp it initialises/destroys the threads that will be used in the realtime system. RunFramework.cpp will start and stop them. rtos_printf( "\nCore loaded\n\n" ); <-- this text doesn't > appear on the monitor. Why? do a 'dmesg' command and you should see the output. dmesg is a key tool for inspecting messages from the realtime system > return 0; <-- ok > } > > Regards > > Piercarlo > Fabrizio > > > _______________________________________________ > Orocos mailing list > [email protected] > http://mail.mech.kuleuven.ac.be/mailman/listinfo/orocos -- Peter Soetens, The Orocos Project http://www.orocos.org KU Leuven, Belgium ---