1234567891011121314151617181920212223242526 |
- #include<__vic/posix/process.h>
- #include<iostream>
- #include<exception>
- #include<cassert>
- #include<unistd.h>
- void run_tests()
- {
- assert(__vic::posix::process_alive(::getpid()));
- assert(__vic::posix::process_alive(1));
- }
- int main()
- {
- try
- {
- run_tests();
- return 0;
- }
- catch(const std::exception &ex)
- {
- std::cerr << ex.what() << '\n';
- }
- return 1;
- }
|