Changeset 2344


Ignore:
Timestamp:
Oct 7, 2008 8:23:01 PM (16 years ago)
Author:
bennylp
Message:

Added pjmedia-test to build system and changed it to not always wait for keyboard input to finish the test

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/build/Makefile

    r2262 r2344  
    107107# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    108108# 
    109 TARGETS := pjmedia pjmedia-codec pjsdp 
    110 #pjmedia-test 
     109TARGETS := pjmedia pjmedia-codec pjsdp pjmedia-test 
    111110 
    112111all: $(TARGETS) 
  • pjproject/trunk/pjmedia/src/test/main.c

    r2101 r2344  
    1 /* $Id:$ */ 
     1/* $Id$ */ 
    22/*  
    33 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org> 
     
    3030 
    3131 
    32 int main() 
     32int main(int argc, char *argv[]) 
    3333{ 
    3434    int rc; 
     
    3737    rc = test_main(); 
    3838 
    39     puts("\nPress <ENTER> to quit"); 
    40     fgets(s, sizeof(s), stdin); 
     39    if (argc == 2 && argv[1][0]=='-' && argv[1][1]=='i') { 
     40        puts("\nPress <ENTER> to quit"); 
     41        fgets(s, sizeof(s), stdin); 
     42    } 
    4143 
    4244    return rc; 
    4345} 
     46  
Note: See TracChangeset for help on using the changeset viewer.