diff options
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/IcePack/Parser.cpp | 4 | ||||
-rwxr-xr-x | cpp/test/IcePack/simple/icepackadmin.py | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/cpp/src/IcePack/Parser.cpp b/cpp/src/IcePack/Parser.cpp index 06386e17e19..394fd143def 100644 --- a/cpp/src/IcePack/Parser.cpp +++ b/cpp/src/IcePack/Parser.cpp @@ -216,6 +216,7 @@ IcePack::Parser::getInput(char* buf, int result, int maxSize) error("input in flex scanner failed"); buf[0] = EOF; result = 1; + return; } result = n; @@ -230,6 +231,9 @@ IcePack::Parser::getInput(char* buf, int result, int maxSize) result = 1; } } + + cout << buf << endl; + cout << result << endl; } void diff --git a/cpp/test/IcePack/simple/icepackadmin.py b/cpp/test/IcePack/simple/icepackadmin.py new file mode 100755 index 00000000000..c1d3969fc96 --- /dev/null +++ b/cpp/test/IcePack/simple/icepackadmin.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# ********************************************************************** +# +# Copyright (c) 2001 +# MutableRealms, Inc. +# Huntsville, AL, USA +# +# All Rights Reserved +# +# ********************************************************************** + +import os, sys + +for toplevel in [".", "..", "../..", "../../..", "../../../.."]: + if os.path.exists(os.path.normpath(toplevel + "/config/TestUtil.py")): + break +else: + raise "can't find toplevel directory!" + +icePackAdmin = os.path.normpath(toplevel + "/bin/icepackadmin") +os.system(icePackAdmin + r' "--Ice.Adapter.Admin.Endpoints=tcp -p 12347 -t 5000"') + +sys.exit(1) + |