BeckmaR opened a new issue #1225: Weird documentation concerning tu_init()
URL: https://github.com/apache/mynewt-core/issues/1225
 
 
   The 
[documentation](https://mynewt.apache.org/latest/os/modules/testutil/tu_init/) 
mentions to use `tu_init()` to initialize the test, which however produces a 
compiling error. Turns out `tu_init()` isn't actually API but automatically 
called by `sysinit()`:
   
   ```
   void
   tu_init(void)
   {
       /* Ensure this function only gets called by sysinit. */
       SYSINIT_ASSERT_ACTIVE();
   
   #if MYNEWT_VAL(SELFTEST)
       os_init(NULL);
       ts_config.ts_print_results = 1;
   #endif
   }
   ```
   
   While `tu_init()` actually exists, the `struct tu_config`, mentioned in the 
same doc, does not.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to