Changeset 1238 for pjproject/trunk
- Timestamp:
- May 1, 2007 10:42:22 AM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/build.symbian/00.bat
r1235 r1238 1 1 rem set MWSym2Libraries=1 2 set EPOCROOT=\Symbian\9.1\S60_3rd_MR_2\ 2 set EPOCROOT=\Symbian\9.1\S60_3rd\ 3 rem set EPOCROOT=\Symbian\9.1\S60_3rd_MR_2\ 3 4 rem set EPOCROOT=\Symbian\UIQ3SDK\ 4 5 bldmake bldfiles -
pjproject/trunk/build.symbian/01.bat
r1235 r1238 2 2 rem set MWSym2Libraries=\Symbian\9.1\S60_3rd\Epoc32\release\winscw\udeb 3 3 4 set EPOCROOT=\Symbian\9.1\S60_3rd_MR_2\ 4 set EPOCROOT=\Symbian\9.1\S60_3rd\ 5 rem set EPOCROOT=\Symbian\9.1\S60_3rd_MR_2\ 5 6 call abld build -v vs6 udeb -
pjproject/trunk/build.symbian/pjlib_test.mmp
r1235 r1238 46 46 SOURCE main_symbian.cpp 47 47 48 DOCUMENT test.h 48 49 49 50 SYSTEMINCLUDE ..\pjlib\include -
pjproject/trunk/pjlib/src/pjlib-test/errno.c
r974 r1238 103 103 * Unix errors 104 104 */ 105 # if def EINVAL105 # if defined(EINVAL) && !defined(PJ_SYMBIAN) 106 106 rc = PJ_STATUS_FROM_OS(EINVAL); 107 107 pj_set_os_error(rc); -
pjproject/trunk/pjlib/src/pjlib-test/ioq_tcp.c
r974 r1238 537 537 static int compliance_test_2(void) 538 538 { 539 #if defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0 540 enum { MAX_PAIR = 1, TEST_LOOP = 2 }; 541 #else 539 542 enum { MAX_PAIR = 4, TEST_LOOP = 2 }; 543 #endif 540 544 541 545 struct listener -
pjproject/trunk/pjlib/src/pjlib-test/pool_perf.c
r974 r1238 61 61 } 62 62 63 /* Symbian doesn't have malloc()/free(), so we use new/delete instead */ 64 #if defined(PJ_SYMBIAN) && PJ_SYMBIAN != 0 65 66 static int pool_test_malloc_free() 67 { 68 int i; /* must be signed */ 69 70 for (i=0; i<COUNT; ++i) { 71 p[i] = new char[sizes[i]]; 72 if (!p[i]) { 73 PJ_LOG(3,(THIS_FILE," error: malloc failed to allocate %d bytes", 74 sizes[i])); 75 --i; 76 while (i >= 0) 77 delete [] p[i], --i; 78 return -1; 79 } 80 *p[i] = '\0'; 81 } 82 83 for (i=0; i<COUNT; ++i) { 84 delete [] p[i]; 85 } 86 87 return 0; 88 } 89 90 #else /* PJ_SYMBIAN */ 91 63 92 static int pool_test_malloc_free() 64 93 { … … 84 113 return 0; 85 114 } 115 116 #endif /* PJ_SYMBIAN */ 86 117 87 118 int pool_perf_test() … … 141 172 else 142 173 best = pool_time2, worst = pool_time; 174 175 /* avoid division by zero */ 176 if (best==0) best=1; 177 if (worst==0) worst=1; 143 178 144 179 PJ_LOG(3, (THIS_FILE, "..pool speedup over malloc best=%dx, worst=%dx", -
pjproject/trunk/pjlib/src/pjlib-test/sock.c
r1235 r1238 370 370 goto on_error; 371 371 372 // This test will fail on S60 3rd Edition MR2 373 #if 0 372 /* Disable this test on Symbian since UDP connect()/send() failed 373 * with S60 3rd edition (including MR2). 374 * See http://www.pjsip.org/trac/ticket/264 375 */ 376 #if !defined(PJ_SYMBIAN) || PJ_SYMBIAN==0 374 377 /* connect() the sockets. */ 375 378 rc = pj_sock_connect(cs, &dstaddr, sizeof(dstaddr)); -
pjproject/trunk/pjlib/src/pjlib-test/sock_perf.c
r1235 r1238 159 159 PJ_LOG(3,("", "...benchmarking socket " 160 160 "(2 sockets, packet=512, single threaded):")); 161 161 162 /* Disable this test on Symbian since UDP connect()/send() failed 163 * with S60 3rd edition (including MR2). 164 * See http://www.pjsip.org/trac/ticket/264 165 */ 166 #if !defined(PJ_SYMBIAN) || PJ_SYMBIAN==0 162 167 /* Benchmarking UDP */ 163 168 rc = sock_producer_consumer(PJ_SOCK_DGRAM, 512, LOOP, &bandwidth); 164 169 if (rc != 0) return rc; 165 170 PJ_LOG(3,("", "....bandwidth UDP = %d KB/s", bandwidth)); 171 #endif 166 172 167 173 /* Benchmarking TCP */ -
pjproject/trunk/pjlib/src/pjlib-test/test.h
r1235 r1238 22 22 #include <pj/types.h> 23 23 24 #define GROUP_LIBC 025 #define GROUP_OS 026 #define GROUP_DATA_STRUCTURE 024 #define GROUP_LIBC 1 25 #define GROUP_OS 1 26 #define GROUP_DATA_STRUCTURE 1 27 27 #define GROUP_NETWORK 1 28 28 #if defined(PJ_SYMBIAN) … … 32 32 #endif 33 33 34 #if defined(PJ_SYMBIAN) 35 # define INCLUDE_ERRNO_TEST 0 36 #else 37 # define INCLUDE_ERRNO_TEST GROUP_LIBC 38 #endif 34 #define INCLUDE_ERRNO_TEST GROUP_LIBC 39 35 #define INCLUDE_TIMESTAMP_TEST GROUP_OS 40 36 #define INCLUDE_EXCEPTION_TEST GROUP_LIBC … … 42 38 #define INCLUDE_LIST_TEST GROUP_DATA_STRUCTURE 43 39 #define INCLUDE_POOL_TEST GROUP_LIBC 44 #define INCLUDE_POOL_PERF_TEST (PJ_HAS_MALLOC && GROUP_LIBC)40 #define INCLUDE_POOL_PERF_TEST GROUP_LIBC 45 41 #define INCLUDE_STRING_TEST GROUP_DATA_STRUCTURE 46 42 #define INCLUDE_FIFOBUF_TEST 0 // GROUP_DATA_STRUCTURE … … 52 48 #define INCLUDE_THREAD_TEST (PJ_HAS_THREADS && GROUP_OS) 53 49 #define INCLUDE_SOCK_TEST GROUP_NETWORK 54 #if defined(PJ_SYMBIAN) 55 # define INCLUDE_SOCK_PERF_TEST 0 56 #else 57 # define INCLUDE_SOCK_PERF_TEST GROUP_NETWORK 58 #endif 50 #define INCLUDE_SOCK_PERF_TEST GROUP_NETWORK 59 51 #define INCLUDE_SELECT_TEST GROUP_NETWORK 60 52 #define INCLUDE_UDP_IOQUEUE_TEST GROUP_NETWORK
Note: See TracChangeset
for help on using the changeset viewer.