StratifyLabs / sostest

Stratify OS Test Suite
GNU Lesser General Public License v3.0
3 stars 3 forks source link

Api sys #60

Closed shomagan closed 6 years ago

shomagan commented 6 years ago

add simply test for signal

tyler-gilbert commented 6 years ago

@shomagan You can remove the tests for sys_23_info and sys_26_info. Those are just legacy methods.

I will change the docs so the board.open() test doesn't fail:

    /*! \details Opens /dev/sys.
     *
     * @return Less than zero for an error
     *
     */
    int open(){
        return File::open("/dev/sys", RDWR);
    }

So it becomes if( board.open() < 0 ){ /* error */ }.

You can also remove the test of board.get_taskattr(). The class sys::Task is now used for that. It will be covered in the TaskTest class. That is a good one for you to work on if you would like.

Those changes should fix the failures in -sys -api test.

tyler-gilbert commented 6 years ago

@shomagan I ran the signal tests. They are looking good so far. Thanks!