Ignore:
Timestamp:
Feb 28, 2011 10:19:23 PM (14 years ago)
Author:
bennylp
Message:

Re #1202 (pjlib sysinfo): testing on OpenSolaris? and added pjlib-test entry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/os.c

    r2394 r3426  
    1818 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1919 */ 
     20#include "test.h" 
     21#include <pj/log.h> 
     22#include <pj/os.h> 
     23 
     24#if INCLUDE_OS_TEST 
     25int os_test(void) 
     26{ 
     27    const pj_sys_info *si; 
     28    int rc = 0; 
     29 
     30    si = pj_get_sys_info(); 
     31    PJ_LOG(3,("", "   machine:  %s", si->machine.ptr)); 
     32    PJ_LOG(3,("", "   os_name:  %s", si->os_name.ptr)); 
     33    PJ_LOG(3,("", "   os_ver:   0x%x", si->os_ver)); 
     34    PJ_LOG(3,("", "   sdk_name: %s", si->sdk_name.ptr)); 
     35    PJ_LOG(3,("", "   sdk_ver:  0x%x", si->sdk_ver)); 
     36    PJ_LOG(3,("", "   info:     %s", si->info.ptr)); 
     37 
     38    return rc; 
     39} 
     40 
     41#else 
    2042int dummy_os_var; 
     43#endif 
     44 
Note: See TracChangeset for help on using the changeset viewer.