From be78053ae3b1dbbd08704e8e0cc9d400f05f6417 Mon Sep 17 00:00:00 2001 From: jose Date: Fri, 11 Mar 2016 22:50:29 +0100 Subject: Minor fix for Debian testing --- scripts/TestUtil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py index aa6f987ea9b..3ba922de2b7 100755 --- a/scripts/TestUtil.py +++ b/scripts/TestUtil.py @@ -1812,7 +1812,7 @@ def getJavaLibraryPath(): if "LD_LIBRARY_PATH" in os.environ: libpath = os.environ["LD_LIBRARY_PATH"] + ":" + libpath return "-Djava.library.path=%s " % libpath - elif isUbuntu(): + elif isUbuntu() or isDebian(): libpath = ("/usr/lib/x86_64-linux-gnu" if x64 else "/usr/lib/i386-linux-gnu") if "LD_LIBRARY_PATH" in os.environ: libpath = os.environ["LD_LIBRARY_PATH"] + ":" + libpath -- cgit v1.2.3 From 2e8a689c1e05b564fa97604beafac48f7375a78c Mon Sep 17 00:00:00 2001 From: Jose Date: Fri, 11 Mar 2016 23:00:43 +0100 Subject: .gitignore updates --- cpp/config/makegitignore.py | 25 ++++----- cpp/include/Freeze/.gitignore | 9 ++-- cpp/include/Ice/.gitignore | 30 +++++------ cpp/include/IceGrid/.gitignore | 7 ++- cpp/include/IceSSL/.gitignore | 2 +- cpp/src/Freeze/.gitignore | 18 ++++--- cpp/src/FreezeScript/.gitignore | 5 ++ cpp/src/Glacier2/.gitignore | 2 + .../Glacier2CryptPermissionsVerifier/.gitignore | 5 ++ cpp/src/Glacier2Lib/.gitignore | 2 + cpp/src/Ice/.gitignore | 62 +++++++++++----------- cpp/src/IceBox/.gitignore | 2 + cpp/src/IceDiscovery/.gitignore | 2 + cpp/src/IceGrid/.gitignore | 10 ++-- cpp/src/IceGridLib/.gitignore | 16 +++--- cpp/src/IceLocatorDiscovery/.gitignore | 2 + cpp/src/IcePatch2/.gitignore | 5 ++ cpp/src/IcePatch2Lib/.gitignore | 2 + cpp/src/IceSSL/.gitignore | 6 ++- cpp/src/IceStorm/.gitignore | 30 ++++++----- cpp/src/IceStormLib/.gitignore | 2 + cpp/src/IceUtil/.gitignore | 5 ++ cpp/src/IceXML/.gitignore | 5 ++ cpp/src/Slice/.gitignore | 5 ++ cpp/src/slice2confluence/.gitignore | 4 ++ cpp/src/slice2cpp/.gitignore | 5 ++ cpp/src/slice2cs/.gitignore | 5 ++ cpp/src/slice2freeze/.gitignore | 5 ++ cpp/src/slice2freezej/.gitignore | 5 ++ cpp/src/slice2html/.gitignore | 5 ++ cpp/src/slice2java/.gitignore | 5 ++ cpp/src/slice2js/.gitignore | 5 ++ cpp/src/slice2objc/.gitignore | 4 ++ cpp/src/slice2php/.gitignore | 5 ++ cpp/src/slice2py/.gitignore | 4 ++ cpp/test/Freeze/complex/.gitignore | 2 + cpp/test/Freeze/dbmap/.gitignore | 2 + cpp/test/Freeze/evictor/.gitignore | 2 + cpp/test/Freeze/fileLock/.gitignore | 2 + cpp/test/FreezeScript/dbmap/.gitignore | 2 + cpp/test/FreezeScript/evictor/.gitignore | 2 + cpp/test/Glacier2/attack/.gitignore | 2 + cpp/test/Glacier2/dynamicFiltering/.gitignore | 2 + cpp/test/Glacier2/override/.gitignore | 1 + cpp/test/Glacier2/router/.gitignore | 2 + cpp/test/Glacier2/sessionControl/.gitignore | 2 + cpp/test/Glacier2/sessionHelper/.gitignore | 2 + cpp/test/Glacier2/ssl/.gitignore | 2 + cpp/test/Glacier2/staticFiltering/.gitignore | 2 + cpp/test/Ice/acm/.gitignore | 2 + cpp/test/Ice/adapterDeactivation/.gitignore | 2 + cpp/test/Ice/admin/.gitignore | 2 + cpp/test/Ice/ami/.gitignore | 2 + cpp/test/Ice/background/.gitignore | 2 + cpp/test/Ice/binding/.gitignore | 2 + cpp/test/Ice/checksum/.gitignore | 2 + cpp/test/Ice/checksum/server/.gitignore | 2 + cpp/test/Ice/custom/.gitignore | 2 + cpp/test/Ice/defaultServant/.gitignore | 2 + cpp/test/Ice/defaultValue/.gitignore | 2 + cpp/test/Ice/dispatcher/.gitignore | 2 + cpp/test/Ice/echo/.gitignore | 2 + cpp/test/Ice/enums/.gitignore | 2 + cpp/test/Ice/exceptions/.gitignore | 2 + cpp/test/Ice/facets/.gitignore | 2 + cpp/test/Ice/faultTolerance/.gitignore | 2 + cpp/test/Ice/gc/.gitignore | 3 +- cpp/test/Ice/hash/.gitignore | 2 + cpp/test/Ice/hold/.gitignore | 2 + cpp/test/Ice/info/.gitignore | 2 + cpp/test/Ice/inheritance/.gitignore | 2 + cpp/test/Ice/interceptor/.gitignore | 2 + cpp/test/Ice/invoke/.gitignore | 1 + cpp/test/Ice/location/.gitignore | 2 + cpp/test/Ice/logger/.gitignore | 3 +- cpp/test/Ice/metrics/.gitignore | 2 + cpp/test/Ice/networkProxy/.gitignore | 2 + cpp/test/Ice/objects/.gitignore | 6 +++ cpp/test/Ice/operations/.gitignore | 2 + cpp/test/Ice/optional/.gitignore | 4 +- cpp/test/Ice/plugin/.gitignore | 2 + cpp/test/Ice/properties/.gitignore | 3 +- cpp/test/Ice/proxy/.gitignore | 2 + cpp/test/Ice/retry/.gitignore | 2 + cpp/test/Ice/servantLocator/.gitignore | 2 + cpp/test/Ice/services/.gitignore | 2 + cpp/test/Ice/slicing/exceptions/.gitignore | 2 + cpp/test/Ice/slicing/objects/.gitignore | 2 + cpp/test/Ice/stream/.gitignore | 2 + cpp/test/Ice/stringConverter/.gitignore | 2 + cpp/test/Ice/threadPoolPriority/.gitignore | 2 + cpp/test/Ice/timeout/.gitignore | 2 + cpp/test/Ice/udp/.gitignore | 2 + cpp/test/IceBox/admin/.gitignore | 2 + cpp/test/IceBox/configuration/.gitignore | 2 + cpp/test/IceDiscovery/simple/.gitignore | 2 + cpp/test/IceGrid/activation/.gitignore | 2 + cpp/test/IceGrid/admin/.gitignore | 2 + cpp/test/IceGrid/allocation/.gitignore | 2 + cpp/test/IceGrid/deployer/.gitignore | 2 + cpp/test/IceGrid/distribution/.gitignore | 2 + cpp/test/IceGrid/noRestartUpdate/.gitignore | 2 + cpp/test/IceGrid/replicaGroup/.gitignore | 2 + cpp/test/IceGrid/replication/.gitignore | 2 + cpp/test/IceGrid/session/.gitignore | 2 + cpp/test/IceGrid/simple/.gitignore | 2 + cpp/test/IceGrid/update/.gitignore | 2 + cpp/test/IceSSL/configuration/.gitignore | 2 + cpp/test/IceStorm/federation/.gitignore | 2 + cpp/test/IceStorm/federation2/.gitignore | 2 + cpp/test/IceStorm/rep1/.gitignore | 2 + cpp/test/IceStorm/repgrid/.gitignore | 2 + cpp/test/IceStorm/repstress/.gitignore | 2 + cpp/test/IceStorm/single/.gitignore | 2 + cpp/test/IceStorm/stress/.gitignore | 2 + cpp/test/IceUtil/condvar/.gitignore | 2 + cpp/test/IceUtil/ctrlCHandler/.gitignore | 2 + cpp/test/IceUtil/inputUtil/.gitignore | 2 + cpp/test/IceUtil/priority/.gitignore | 2 + cpp/test/IceUtil/sha1/.gitignore | 2 + cpp/test/IceUtil/stacktrace/.gitignore | 2 + cpp/test/IceUtil/thread/.gitignore | 2 + cpp/test/IceUtil/timer/.gitignore | 2 + cpp/test/IceUtil/unicode/.gitignore | 2 + cpp/test/IceUtil/uuid/.gitignore | 2 + cpp/test/Slice/keyword/.gitignore | 2 + cpp/test/Slice/macros/.gitignore | 2 + cpp/test/Slice/parser/.gitignore | 2 + cpp/test/Slice/structure/.gitignore | 2 + cpp/test/Slice/utf8BOM/.gitignore | 1 + 130 files changed, 399 insertions(+), 108 deletions(-) create mode 100644 cpp/src/FreezeScript/.gitignore create mode 100644 cpp/src/Glacier2CryptPermissionsVerifier/.gitignore create mode 100644 cpp/src/IcePatch2/.gitignore create mode 100644 cpp/src/IceUtil/.gitignore create mode 100644 cpp/src/IceXML/.gitignore create mode 100644 cpp/src/Slice/.gitignore create mode 100644 cpp/src/slice2confluence/.gitignore create mode 100644 cpp/src/slice2cpp/.gitignore create mode 100644 cpp/src/slice2cs/.gitignore create mode 100644 cpp/src/slice2freeze/.gitignore create mode 100644 cpp/src/slice2freezej/.gitignore create mode 100644 cpp/src/slice2html/.gitignore create mode 100644 cpp/src/slice2java/.gitignore create mode 100644 cpp/src/slice2js/.gitignore create mode 100644 cpp/src/slice2objc/.gitignore create mode 100644 cpp/src/slice2php/.gitignore create mode 100644 cpp/src/slice2py/.gitignore diff --git a/cpp/config/makegitignore.py b/cpp/config/makegitignore.py index 6d593b3b9e3..28f167722de 100755 --- a/cpp/config/makegitignore.py +++ b/cpp/config/makegitignore.py @@ -101,9 +101,9 @@ def usage(): print "-h Show this message." print -icee = False + try: - opts, args = getopt.getopt(sys.argv[1:], "he") + opts, args = getopt.getopt(sys.argv[1:], "h") except getopt.GetoptError: usage() sys.exit(1) @@ -111,8 +111,7 @@ for o, a in opts: if o == "-h": usage() sys.exit(0) - elif o == "-e": - icee = True + if len(args) != 0: usage() sys.exit(1) @@ -129,10 +128,8 @@ else: print("cannot find top-level directory") sys.exit(1) -if icee: - makefiles = find(os.path.join(toplevel, "cppe"), "Makefile") -else: - makefiles = find(os.path.join(toplevel, "cpp"), "Makefile") + +makefiles = find(os.path.join(toplevel, "cpp"), "Makefile") cwd = os.getcwd() gitIgnoreFiles = { } for i in makefiles: @@ -149,15 +146,15 @@ for i in makefiles: os.chdir(cwd) -excludePath = [ os.path.join(toplevel, "cpp", "bin"), os.path.join(toplevel, "cpp", "lib"), \ - os.path.join(toplevel, "cppe", "bin"), os.path.join(toplevel, "cppe", "lib") ] +excludePath = [ os.path.join(toplevel, "cpp", "bin"), os.path.join(toplevel, "cpp", "lib") ] for (path, files) in gitIgnoreFiles.iteritems(): if os.path.dirname(path) in excludePath: continue if not os.path.exists(path): print files - gitIgnore = open(path, "w") - gitIgnore.write(preamble); - gitIgnore.writelines(files) - gitIgnore.close() + if os.path.isdir(os.path.dirname(path)): + gitIgnore = open(path, "w") + gitIgnore.write(preamble); + gitIgnore.writelines(files) + gitIgnore.close() diff --git a/cpp/include/Freeze/.gitignore b/cpp/include/Freeze/.gitignore index 501ab8b0aca..a7fae586955 100644 --- a/cpp/include/Freeze/.gitignore +++ b/cpp/include/Freeze/.gitignore @@ -2,15 +2,16 @@ // IMPORTANT: Do not edit this file -- any edits made here will be lost! BackgroundSaveEvictor.h -DB.h CatalogData.h Connection.h ConnectionF.h -Exception.h +DB.h +Evictor.h EvictorF.h EvictorStorage.h -Evictor.h -TransactionalEvictor.h +Exception.h Transaction.h +TransactionalEvictor.h +PingObject.h Catalog.h CatalogIndexList.h diff --git a/cpp/include/Ice/.gitignore b/cpp/include/Ice/.gitignore index 7111772146c..a8a61279201 100644 --- a/cpp/include/Ice/.gitignore +++ b/cpp/include/Ice/.gitignore @@ -2,41 +2,41 @@ // IMPORTANT: Do not edit this file -- any edits made here will be lost! BuiltinSequences.h -CommunicatorF.h Communicator.h -ConnectionF.h +CommunicatorF.h Connection.h +ConnectionF.h Current.h Endpoint.h EndpointF.h EndpointTypes.h FacetMap.h Identity.h -ImplicitContextF.h ImplicitContext.h +ImplicitContextF.h +Instrumentation.h +InstrumentationF.h LocalException.h -LocatorF.h Locator.h -LoggerF.h +LocatorF.h Logger.h +LoggerF.h Metrics.h -ObjectAdapterF.h ObjectAdapter.h -ObjectFactoryF.h +ObjectAdapterF.h ObjectFactory.h -Instrumentation.h -InstrumentationF.h -PluginF.h +ObjectFactoryF.h Plugin.h -ProcessF.h +PluginF.h Process.h -PropertiesF.h -PropertiesAdmin.h +ProcessF.h Properties.h +PropertiesAdmin.h +PropertiesF.h RemoteLogger.h -RouterF.h Router.h -ServantLocatorF.h +RouterF.h ServantLocator.h +ServantLocatorF.h SliceChecksumDict.h Version.h diff --git a/cpp/include/IceGrid/.gitignore b/cpp/include/IceGrid/.gitignore index 195635b503d..9d13a816fbf 100644 --- a/cpp/include/IceGrid/.gitignore +++ b/cpp/include/IceGrid/.gitignore @@ -2,14 +2,13 @@ // IMPORTANT: Do not edit this file -- any edits made here will be lost! Admin.h -Discovery.h +Descriptor.h Exception.h FileParser.h Locator.h +Observer.h +PluginFacade.h Query.h Registry.h Session.h -Observer.h -Descriptor.h UserAccountMapper.h -PluginFacade.h diff --git a/cpp/include/IceSSL/.gitignore b/cpp/include/IceSSL/.gitignore index f53e54c68e3..8ff8c54a7de 100644 --- a/cpp/include/IceSSL/.gitignore +++ b/cpp/include/IceSSL/.gitignore @@ -1,5 +1,5 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! -EndpointInfo.h ConnectionInfo.h +EndpointInfo.h diff --git a/cpp/src/Freeze/.gitignore b/cpp/src/Freeze/.gitignore index b09bdea2d1e..fb47282b2ab 100644 --- a/cpp/src/Freeze/.gitignore +++ b/cpp/src/Freeze/.gitignore @@ -1,29 +1,31 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend BackgroundSaveEvictor.cpp -DB.cpp CatalogData.cpp Connection.cpp ConnectionF.cpp -Exception.cpp +DB.cpp +Evictor.cpp EvictorF.cpp EvictorStorage.cpp -Evictor.cpp -TransactionalEvictor.cpp +Exception.cpp Transaction.cpp +TransactionalEvictor.cpp PingObject.cpp BackgroundSaveEvictor.h -DB.h CatalogData.h Connection.h ConnectionF.h -Exception.h +DB.h +Evictor.h EvictorF.h EvictorStorage.h -Evictor.h -TransactionalEvictor.h +Exception.h Transaction.h +TransactionalEvictor.h PingObject.h Catalog.cpp CatalogIndexList.cpp diff --git a/cpp/src/FreezeScript/.gitignore b/cpp/src/FreezeScript/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/FreezeScript/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/Glacier2/.gitignore b/cpp/src/Glacier2/.gitignore index 7cc85ffc850..093e464bbf3 100644 --- a/cpp/src/Glacier2/.gitignore +++ b/cpp/src/Glacier2/.gitignore @@ -1,5 +1,7 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend Instrumentation.cpp Instrumentation.h diff --git a/cpp/src/Glacier2CryptPermissionsVerifier/.gitignore b/cpp/src/Glacier2CryptPermissionsVerifier/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/Glacier2CryptPermissionsVerifier/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/Glacier2Lib/.gitignore b/cpp/src/Glacier2Lib/.gitignore index f4cc829053e..95b4c5cf67d 100644 --- a/cpp/src/Glacier2Lib/.gitignore +++ b/cpp/src/Glacier2Lib/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend Metrics.cpp PermissionsVerifierF.cpp PermissionsVerifier.cpp diff --git a/cpp/src/Ice/.gitignore b/cpp/src/Ice/.gitignore index abeb5e2cf37..99bfe471904 100644 --- a/cpp/src/Ice/.gitignore +++ b/cpp/src/Ice/.gitignore @@ -1,81 +1,83 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend BuiltinSequences.cpp -CommunicatorF.cpp Communicator.cpp -ConnectionF.cpp +CommunicatorF.cpp Connection.cpp +ConnectionF.cpp Current.cpp Endpoint.cpp EndpointF.cpp EndpointTypes.cpp FacetMap.cpp Identity.cpp -ImplicitContextF.cpp ImplicitContext.cpp +ImplicitContextF.cpp +Instrumentation.cpp +InstrumentationF.cpp LocalException.cpp -LocatorF.cpp Locator.cpp -LoggerF.cpp +LocatorF.cpp Logger.cpp +LoggerF.cpp Metrics.cpp -ObjectAdapterF.cpp ObjectAdapter.cpp -ObjectFactoryF.cpp +ObjectAdapterF.cpp ObjectFactory.cpp -Instrumentation.cpp -InstrumentationF.cpp -PluginF.cpp +ObjectFactoryF.cpp Plugin.cpp -ProcessF.cpp +PluginF.cpp Process.cpp -PropertiesF.cpp -PropertiesAdmin.cpp +ProcessF.cpp Properties.cpp +PropertiesAdmin.cpp +PropertiesF.cpp RemoteLogger.cpp -RouterF.cpp Router.cpp -ServantLocatorF.cpp +RouterF.cpp ServantLocator.cpp +ServantLocatorF.cpp SliceChecksumDict.cpp Version.cpp BuiltinSequences.h -CommunicatorF.h Communicator.h -ConnectionF.h +CommunicatorF.h Connection.h +ConnectionF.h Current.h Endpoint.h EndpointF.h EndpointTypes.h FacetMap.h Identity.h -ImplicitContextF.h ImplicitContext.h +ImplicitContextF.h +Instrumentation.h +InstrumentationF.h LocalException.h -LocatorF.h Locator.h -LoggerF.h +LocatorF.h Logger.h +LoggerF.h Metrics.h -ObjectAdapterF.h ObjectAdapter.h -ObjectFactoryF.h +ObjectAdapterF.h ObjectFactory.h -Instrumentation.h -InstrumentationF.h -PluginF.h +ObjectFactoryF.h Plugin.h -ProcessF.h +PluginF.h Process.h -PropertiesF.h -PropertiesAdmin.h +ProcessF.h Properties.h +PropertiesAdmin.h +PropertiesF.h RemoteLogger.h -RouterF.h Router.h -ServantLocatorF.h +RouterF.h ServantLocator.h +ServantLocatorF.h SliceChecksumDict.h Version.h diff --git a/cpp/src/IceBox/.gitignore b/cpp/src/IceBox/.gitignore index 03d4ede8a70..c483621af47 100644 --- a/cpp/src/IceBox/.gitignore +++ b/cpp/src/IceBox/.gitignore @@ -1,5 +1,7 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend IceBox.cpp IceBox.h diff --git a/cpp/src/IceDiscovery/.gitignore b/cpp/src/IceDiscovery/.gitignore index 7ba1aabfc02..07790f7db33 100644 --- a/cpp/src/IceDiscovery/.gitignore +++ b/cpp/src/IceDiscovery/.gitignore @@ -1,5 +1,7 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend IceDiscovery.cpp IceDiscovery.h diff --git a/cpp/src/IceGrid/.gitignore b/cpp/src/IceGrid/.gitignore index baa4bbeaa15..7f8f1311b4d 100644 --- a/cpp/src/IceGrid/.gitignore +++ b/cpp/src/IceGrid/.gitignore @@ -1,12 +1,14 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! -DBTypes.cpp -DBTypes.h -IceLocatorDiscovery.cpp -IceLocatorDiscovery.h +.depend +.depend Internal.cpp +IceLocatorDiscovery.cpp +DBTypes.cpp Internal.h +IceLocatorDiscovery.h +DBTypes.h StringApplicationInfoDict.h StringApplicationInfoDict.cpp IdentityObjectInfoDict.h diff --git a/cpp/src/IceGridLib/.gitignore b/cpp/src/IceGridLib/.gitignore index 2a86c159391..9d7a58ce79a 100644 --- a/cpp/src/IceGridLib/.gitignore +++ b/cpp/src/IceGridLib/.gitignore @@ -1,27 +1,27 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend Admin.cpp -Discovery.cpp +Descriptor.cpp Exception.cpp FileParser.cpp Locator.cpp +Observer.cpp +PluginFacade.cpp Query.cpp Registry.cpp Session.cpp -Observer.cpp -Descriptor.cpp UserAccountMapper.cpp -PluginFacade.cpp Admin.h -Discovery.h +Descriptor.h Exception.h FileParser.h Locator.h +Observer.h +PluginFacade.h Query.h Registry.h Session.h -Observer.h -Descriptor.h UserAccountMapper.h -PluginFacade.h diff --git a/cpp/src/IceLocatorDiscovery/.gitignore b/cpp/src/IceLocatorDiscovery/.gitignore index fb1f34c05a4..45e29d8dd2d 100644 --- a/cpp/src/IceLocatorDiscovery/.gitignore +++ b/cpp/src/IceLocatorDiscovery/.gitignore @@ -1,5 +1,7 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend IceLocatorDiscovery.cpp IceLocatorDiscovery.h diff --git a/cpp/src/IcePatch2/.gitignore b/cpp/src/IcePatch2/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/IcePatch2/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/IcePatch2Lib/.gitignore b/cpp/src/IcePatch2Lib/.gitignore index 1364efc1d87..a6ba57e6121 100644 --- a/cpp/src/IcePatch2Lib/.gitignore +++ b/cpp/src/IcePatch2Lib/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend FileInfo.cpp FileServer.cpp FileInfo.h diff --git a/cpp/src/IceSSL/.gitignore b/cpp/src/IceSSL/.gitignore index 88e034bad9d..981999c07ba 100644 --- a/cpp/src/IceSSL/.gitignore +++ b/cpp/src/IceSSL/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! -EndpointInfo.cpp +.depend +.depend ConnectionInfo.cpp -EndpointInfo.h +EndpointInfo.cpp ConnectionInfo.h +EndpointInfo.h diff --git a/cpp/src/IceStorm/.gitignore b/cpp/src/IceStorm/.gitignore index afe04b10dd3..a32b97ba56c 100644 --- a/cpp/src/IceStorm/.gitignore +++ b/cpp/src/IceStorm/.gitignore @@ -1,31 +1,33 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! -DBTypes.h -DBTypes.cpp -Instrumentation.cpp +.depend +.depend Election.cpp IceStormInternal.cpp +Instrumentation.cpp +LinkRecord.cpp LLURecord.cpp SubscriberRecord.cpp -LinkRecord.cpp -V32Format.cpp V31Format.cpp -Instrumentation.h +V32Format.cpp +DBTypes.cpp Election.h IceStormInternal.h +Instrumentation.h +LinkRecord.h LLURecord.h SubscriberRecord.h -LinkRecord.h -V32Format.h V31Format.h +V32Format.h +DBTypes.h +LinkRecord.h +LinkRecord.cpp +LLUMap.h +LLUMap.cpp SubscriberMap.h SubscriberMap.cpp -V32FormatDB.h -V32FormatDB.cpp V31FormatDB.h V31FormatDB.cpp -LLUMap.h -LLUMap.cpp -LinkRecord.h -LinkRecord.cpp +V32FormatDB.h +V32FormatDB.cpp diff --git a/cpp/src/IceStormLib/.gitignore b/cpp/src/IceStormLib/.gitignore index 4ac7fbb48ef..798077a2149 100644 --- a/cpp/src/IceStormLib/.gitignore +++ b/cpp/src/IceStormLib/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend IceStorm.cpp Metrics.cpp IceStorm.h diff --git a/cpp/src/IceUtil/.gitignore b/cpp/src/IceUtil/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/IceUtil/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/IceXML/.gitignore b/cpp/src/IceXML/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/IceXML/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/Slice/.gitignore b/cpp/src/Slice/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/Slice/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/slice2confluence/.gitignore b/cpp/src/slice2confluence/.gitignore new file mode 100644 index 00000000000..3a412ca89c7 --- /dev/null +++ b/cpp/src/slice2confluence/.gitignore @@ -0,0 +1,4 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend diff --git a/cpp/src/slice2cpp/.gitignore b/cpp/src/slice2cpp/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/slice2cpp/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/slice2cs/.gitignore b/cpp/src/slice2cs/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/slice2cs/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/slice2freeze/.gitignore b/cpp/src/slice2freeze/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/slice2freeze/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/slice2freezej/.gitignore b/cpp/src/slice2freezej/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/slice2freezej/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/slice2html/.gitignore b/cpp/src/slice2html/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/slice2html/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/slice2java/.gitignore b/cpp/src/slice2java/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/slice2java/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/slice2js/.gitignore b/cpp/src/slice2js/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/slice2js/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/slice2objc/.gitignore b/cpp/src/slice2objc/.gitignore new file mode 100644 index 00000000000..3a412ca89c7 --- /dev/null +++ b/cpp/src/slice2objc/.gitignore @@ -0,0 +1,4 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend diff --git a/cpp/src/slice2php/.gitignore b/cpp/src/slice2php/.gitignore new file mode 100644 index 00000000000..720f44c7047 --- /dev/null +++ b/cpp/src/slice2php/.gitignore @@ -0,0 +1,5 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend +.depend diff --git a/cpp/src/slice2py/.gitignore b/cpp/src/slice2py/.gitignore new file mode 100644 index 00000000000..3a412ca89c7 --- /dev/null +++ b/cpp/src/slice2py/.gitignore @@ -0,0 +1,4 @@ +// Generated by makegitignore.py + +// IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend diff --git a/cpp/test/Freeze/complex/.gitignore b/cpp/test/Freeze/complex/.gitignore index c1641d6cf02..f8cb9f16bc6 100644 --- a/cpp/test/Freeze/complex/.gitignore +++ b/cpp/test/Freeze/complex/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Complex.cpp Complex.h ComplexDict.h diff --git a/cpp/test/Freeze/dbmap/.gitignore b/cpp/test/Freeze/dbmap/.gitignore index ba2bc3536f9..286d0606d2d 100644 --- a/cpp/test/Freeze/dbmap/.gitignore +++ b/cpp/test/Freeze/dbmap/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend ByteIntMap.h ByteIntMap.cpp IntIdentityMap.h diff --git a/cpp/test/Freeze/evictor/.gitignore b/cpp/test/Freeze/evictor/.gitignore index 5813c1223e3..827237c9887 100644 --- a/cpp/test/Freeze/evictor/.gitignore +++ b/cpp/test/Freeze/evictor/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h db/__catalog diff --git a/cpp/test/Freeze/fileLock/.gitignore b/cpp/test/Freeze/fileLock/.gitignore index e58e5b6b798..7571cd220cf 100644 --- a/cpp/test/Freeze/fileLock/.gitignore +++ b/cpp/test/Freeze/fileLock/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client clientFail +.depend db/* diff --git a/cpp/test/FreezeScript/dbmap/.gitignore b/cpp/test/FreezeScript/dbmap/.gitignore index 2e986d77bf8..5388d8cbd40 100644 --- a/cpp/test/FreezeScript/dbmap/.gitignore +++ b/cpp/test/FreezeScript/dbmap/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend makedb +.depend TestOld.cpp TestOld.h IntSMap.h diff --git a/cpp/test/FreezeScript/evictor/.gitignore b/cpp/test/FreezeScript/evictor/.gitignore index 9ebd9157ec2..8d7d18ce80d 100644 --- a/cpp/test/FreezeScript/evictor/.gitignore +++ b/cpp/test/FreezeScript/evictor/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend makedb +.depend TestOld.cpp TestOld.h db/* diff --git a/cpp/test/Glacier2/attack/.gitignore b/cpp/test/Glacier2/attack/.gitignore index 9f1b6cf6e03..a0c8f4f0ab1 100644 --- a/cpp/test/Glacier2/attack/.gitignore +++ b/cpp/test/Glacier2/attack/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Backend.cpp Backend.h diff --git a/cpp/test/Glacier2/dynamicFiltering/.gitignore b/cpp/test/Glacier2/dynamicFiltering/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Glacier2/dynamicFiltering/.gitignore +++ b/cpp/test/Glacier2/dynamicFiltering/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Glacier2/override/.gitignore b/cpp/test/Glacier2/override/.gitignore index 1cb01a674d1..64d5c068c33 100644 --- a/cpp/test/Glacier2/override/.gitignore +++ b/cpp/test/Glacier2/override/.gitignore @@ -3,5 +3,6 @@ // IMPORTANT: Do not edit this file -- any edits made here will be lost! client server +.depend Callback.cpp Callback.h diff --git a/cpp/test/Glacier2/router/.gitignore b/cpp/test/Glacier2/router/.gitignore index 1cb01a674d1..8671f03d5a1 100644 --- a/cpp/test/Glacier2/router/.gitignore +++ b/cpp/test/Glacier2/router/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Callback.cpp Callback.h diff --git a/cpp/test/Glacier2/sessionControl/.gitignore b/cpp/test/Glacier2/sessionControl/.gitignore index 2fa6de831ef..88130e8077a 100644 --- a/cpp/test/Glacier2/sessionControl/.gitignore +++ b/cpp/test/Glacier2/sessionControl/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Session.cpp Session.h diff --git a/cpp/test/Glacier2/sessionHelper/.gitignore b/cpp/test/Glacier2/sessionHelper/.gitignore index 1cb01a674d1..8671f03d5a1 100644 --- a/cpp/test/Glacier2/sessionHelper/.gitignore +++ b/cpp/test/Glacier2/sessionHelper/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Callback.cpp Callback.h diff --git a/cpp/test/Glacier2/ssl/.gitignore b/cpp/test/Glacier2/ssl/.gitignore index 30e8bfc4624..bc1dd55fba1 100644 --- a/cpp/test/Glacier2/ssl/.gitignore +++ b/cpp/test/Glacier2/ssl/.gitignore @@ -1,5 +1,7 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend diff --git a/cpp/test/Glacier2/staticFiltering/.gitignore b/cpp/test/Glacier2/staticFiltering/.gitignore index 4e792685e9d..6257255fb0a 100644 --- a/cpp/test/Glacier2/staticFiltering/.gitignore +++ b/cpp/test/Glacier2/staticFiltering/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Backend.cpp Backend.h attack.cfg diff --git a/cpp/test/Ice/acm/.gitignore b/cpp/test/Ice/acm/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/acm/.gitignore +++ b/cpp/test/Ice/acm/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/adapterDeactivation/.gitignore b/cpp/test/Ice/adapterDeactivation/.gitignore index d00d2864558..21c2eee2b29 100644 --- a/cpp/test/Ice/adapterDeactivation/.gitignore +++ b/cpp/test/Ice/adapterDeactivation/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server collocated +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/admin/.gitignore b/cpp/test/Ice/admin/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/admin/.gitignore +++ b/cpp/test/Ice/admin/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/ami/.gitignore b/cpp/test/Ice/ami/.gitignore index d00d2864558..21c2eee2b29 100644 --- a/cpp/test/Ice/ami/.gitignore +++ b/cpp/test/Ice/ami/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server collocated +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/background/.gitignore b/cpp/test/Ice/background/.gitignore index 3b65bea68f8..2c327f510eb 100644 --- a/cpp/test/Ice/background/.gitignore +++ b/cpp/test/Ice/background/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server libTestTransport.* +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/binding/.gitignore b/cpp/test/Ice/binding/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/binding/.gitignore +++ b/cpp/test/Ice/binding/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/checksum/.gitignore b/cpp/test/Ice/checksum/.gitignore index 02593a09c8e..a73cd1ba716 100644 --- a/cpp/test/Ice/checksum/.gitignore +++ b/cpp/test/Ice/checksum/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Types.cpp Test.h diff --git a/cpp/test/Ice/checksum/server/.gitignore b/cpp/test/Ice/checksum/server/.gitignore index 4d88c2a958a..ac30cd19766 100644 --- a/cpp/test/Ice/checksum/server/.gitignore +++ b/cpp/test/Ice/checksum/server/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend server +.depend Test.cpp Types.cpp Test.h diff --git a/cpp/test/Ice/custom/.gitignore b/cpp/test/Ice/custom/.gitignore index 27da0899433..554110014d7 100644 --- a/cpp/test/Ice/custom/.gitignore +++ b/cpp/test/Ice/custom/.gitignore @@ -1,10 +1,12 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server serveramd collocated +.depend Test.cpp TestAMD.cpp Wstring.cpp diff --git a/cpp/test/Ice/defaultServant/.gitignore b/cpp/test/Ice/defaultServant/.gitignore index 505a9066685..dcdf5eb23c7 100644 --- a/cpp/test/Ice/defaultServant/.gitignore +++ b/cpp/test/Ice/defaultServant/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/defaultValue/.gitignore b/cpp/test/Ice/defaultValue/.gitignore index 505a9066685..dcdf5eb23c7 100644 --- a/cpp/test/Ice/defaultValue/.gitignore +++ b/cpp/test/Ice/defaultValue/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/dispatcher/.gitignore b/cpp/test/Ice/dispatcher/.gitignore index d00d2864558..21c2eee2b29 100644 --- a/cpp/test/Ice/dispatcher/.gitignore +++ b/cpp/test/Ice/dispatcher/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server collocated +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/echo/.gitignore b/cpp/test/Ice/echo/.gitignore index 208c208d34b..571c54bbb1f 100644 --- a/cpp/test/Ice/echo/.gitignore +++ b/cpp/test/Ice/echo/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/enums/.gitignore b/cpp/test/Ice/enums/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/enums/.gitignore +++ b/cpp/test/Ice/enums/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/exceptions/.gitignore b/cpp/test/Ice/exceptions/.gitignore index 86dc0d62846..725fdbfe47e 100644 --- a/cpp/test/Ice/exceptions/.gitignore +++ b/cpp/test/Ice/exceptions/.gitignore @@ -1,10 +1,12 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server serveramd collocated +.depend Test.cpp TestAMD.cpp Test.h diff --git a/cpp/test/Ice/facets/.gitignore b/cpp/test/Ice/facets/.gitignore index d00d2864558..21c2eee2b29 100644 --- a/cpp/test/Ice/facets/.gitignore +++ b/cpp/test/Ice/facets/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server collocated +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/faultTolerance/.gitignore b/cpp/test/Ice/faultTolerance/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/faultTolerance/.gitignore +++ b/cpp/test/Ice/faultTolerance/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/gc/.gitignore b/cpp/test/Ice/gc/.gitignore index 4270746d238..dcdf5eb23c7 100644 --- a/cpp/test/Ice/gc/.gitignore +++ b/cpp/test/Ice/gc/.gitignore @@ -1,7 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Test.h -seed diff --git a/cpp/test/Ice/hash/.gitignore b/cpp/test/Ice/hash/.gitignore index 505a9066685..dcdf5eb23c7 100644 --- a/cpp/test/Ice/hash/.gitignore +++ b/cpp/test/Ice/hash/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/hold/.gitignore b/cpp/test/Ice/hold/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/hold/.gitignore +++ b/cpp/test/Ice/hold/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/info/.gitignore b/cpp/test/Ice/info/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/info/.gitignore +++ b/cpp/test/Ice/info/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/inheritance/.gitignore b/cpp/test/Ice/inheritance/.gitignore index d00d2864558..21c2eee2b29 100644 --- a/cpp/test/Ice/inheritance/.gitignore +++ b/cpp/test/Ice/inheritance/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server collocated +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/interceptor/.gitignore b/cpp/test/Ice/interceptor/.gitignore index 505a9066685..dcdf5eb23c7 100644 --- a/cpp/test/Ice/interceptor/.gitignore +++ b/cpp/test/Ice/interceptor/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/invoke/.gitignore b/cpp/test/Ice/invoke/.gitignore index 67872faa673..2ec67c2a17c 100644 --- a/cpp/test/Ice/invoke/.gitignore +++ b/cpp/test/Ice/invoke/.gitignore @@ -3,5 +3,6 @@ // IMPORTANT: Do not edit this file -- any edits made here will be lost! client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/location/.gitignore b/cpp/test/Ice/location/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/location/.gitignore +++ b/cpp/test/Ice/location/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/logger/.gitignore b/cpp/test/Ice/logger/.gitignore index a3840a0dcdf..a918a882f43 100644 --- a/cpp/test/Ice/logger/.gitignore +++ b/cpp/test/Ice/logger/.gitignore @@ -1,8 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client1 client2 client3 client4 -seed +.depend diff --git a/cpp/test/Ice/metrics/.gitignore b/cpp/test/Ice/metrics/.gitignore index 86dc0d62846..725fdbfe47e 100644 --- a/cpp/test/Ice/metrics/.gitignore +++ b/cpp/test/Ice/metrics/.gitignore @@ -1,10 +1,12 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server serveramd collocated +.depend Test.cpp TestAMD.cpp Test.h diff --git a/cpp/test/Ice/networkProxy/.gitignore b/cpp/test/Ice/networkProxy/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/networkProxy/.gitignore +++ b/cpp/test/Ice/networkProxy/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/objects/.gitignore b/cpp/test/Ice/objects/.gitignore index d00d2864558..45895860e8d 100644 --- a/cpp/test/Ice/objects/.gitignore +++ b/cpp/test/Ice/objects/.gitignore @@ -1,8 +1,14 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server collocated +.depend Test.cpp +Derived.cpp +DerivedEx.cpp Test.h +Derived.h +DerivedEx.h diff --git a/cpp/test/Ice/operations/.gitignore b/cpp/test/Ice/operations/.gitignore index 86dc0d62846..725fdbfe47e 100644 --- a/cpp/test/Ice/operations/.gitignore +++ b/cpp/test/Ice/operations/.gitignore @@ -1,10 +1,12 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server serveramd collocated +.depend Test.cpp TestAMD.cpp Test.h diff --git a/cpp/test/Ice/optional/.gitignore b/cpp/test/Ice/optional/.gitignore index f6ac51a4607..f1f62485ccb 100644 --- a/cpp/test/Ice/optional/.gitignore +++ b/cpp/test/Ice/optional/.gitignore @@ -1,10 +1,12 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server serveramd +.depend Test.cpp -Test.h TestAMD.cpp +Test.h TestAMD.h diff --git a/cpp/test/Ice/plugin/.gitignore b/cpp/test/Ice/plugin/.gitignore index 2b0c67f9d75..acda1ecf37a 100644 --- a/cpp/test/Ice/plugin/.gitignore +++ b/cpp/test/Ice/plugin/.gitignore @@ -1,5 +1,7 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client plugins/libTestPlugin.* +.depend diff --git a/cpp/test/Ice/properties/.gitignore b/cpp/test/Ice/properties/.gitignore index 9f5181ae1f1..f715a76859d 100644 --- a/cpp/test/Ice/properties/.gitignore +++ b/cpp/test/Ice/properties/.gitignore @@ -1,5 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client -seed +.depend diff --git a/cpp/test/Ice/proxy/.gitignore b/cpp/test/Ice/proxy/.gitignore index 86dc0d62846..725fdbfe47e 100644 --- a/cpp/test/Ice/proxy/.gitignore +++ b/cpp/test/Ice/proxy/.gitignore @@ -1,10 +1,12 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server serveramd collocated +.depend Test.cpp TestAMD.cpp Test.h diff --git a/cpp/test/Ice/retry/.gitignore b/cpp/test/Ice/retry/.gitignore index d00d2864558..21c2eee2b29 100644 --- a/cpp/test/Ice/retry/.gitignore +++ b/cpp/test/Ice/retry/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server collocated +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/servantLocator/.gitignore b/cpp/test/Ice/servantLocator/.gitignore index 86dc0d62846..725fdbfe47e 100644 --- a/cpp/test/Ice/servantLocator/.gitignore +++ b/cpp/test/Ice/servantLocator/.gitignore @@ -1,10 +1,12 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server serveramd collocated +.depend Test.cpp TestAMD.cpp Test.h diff --git a/cpp/test/Ice/services/.gitignore b/cpp/test/Ice/services/.gitignore index 505a9066685..dcdf5eb23c7 100644 --- a/cpp/test/Ice/services/.gitignore +++ b/cpp/test/Ice/services/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/slicing/exceptions/.gitignore b/cpp/test/Ice/slicing/exceptions/.gitignore index ed8bb406a1e..756a3f6161a 100644 --- a/cpp/test/Ice/slicing/exceptions/.gitignore +++ b/cpp/test/Ice/slicing/exceptions/.gitignore @@ -1,9 +1,11 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server serveramd +.depend Test.cpp TestAMD.cpp ClientPrivate.cpp diff --git a/cpp/test/Ice/slicing/objects/.gitignore b/cpp/test/Ice/slicing/objects/.gitignore index cea91f33071..899ee01ff92 100644 --- a/cpp/test/Ice/slicing/objects/.gitignore +++ b/cpp/test/Ice/slicing/objects/.gitignore @@ -1,9 +1,11 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server serveramd +.depend Test.cpp TestAMD.cpp ClientPrivate.cpp diff --git a/cpp/test/Ice/stream/.gitignore b/cpp/test/Ice/stream/.gitignore index 505a9066685..dcdf5eb23c7 100644 --- a/cpp/test/Ice/stream/.gitignore +++ b/cpp/test/Ice/stream/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/stringConverter/.gitignore b/cpp/test/Ice/stringConverter/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/stringConverter/.gitignore +++ b/cpp/test/Ice/stringConverter/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/threadPoolPriority/.gitignore b/cpp/test/Ice/threadPoolPriority/.gitignore index a5ba5646b8e..ae1078237e7 100644 --- a/cpp/test/Ice/threadPoolPriority/.gitignore +++ b/cpp/test/Ice/threadPoolPriority/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server servercustom +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/timeout/.gitignore b/cpp/test/Ice/timeout/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/timeout/.gitignore +++ b/cpp/test/Ice/timeout/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/Ice/udp/.gitignore b/cpp/test/Ice/udp/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/Ice/udp/.gitignore +++ b/cpp/test/Ice/udp/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/IceBox/admin/.gitignore b/cpp/test/IceBox/admin/.gitignore index 881ee03f814..03484b5178b 100644 --- a/cpp/test/IceBox/admin/.gitignore +++ b/cpp/test/IceBox/admin/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client libTestService.* +.depend Test.cpp Test.h diff --git a/cpp/test/IceBox/configuration/.gitignore b/cpp/test/IceBox/configuration/.gitignore index 881ee03f814..03484b5178b 100644 --- a/cpp/test/IceBox/configuration/.gitignore +++ b/cpp/test/IceBox/configuration/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client libTestService.* +.depend Test.cpp Test.h diff --git a/cpp/test/IceDiscovery/simple/.gitignore b/cpp/test/IceDiscovery/simple/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/IceDiscovery/simple/.gitignore +++ b/cpp/test/IceDiscovery/simple/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/IceGrid/activation/.gitignore b/cpp/test/IceGrid/activation/.gitignore index 6236c515c56..1593c12731f 100644 --- a/cpp/test/IceGrid/activation/.gitignore +++ b/cpp/test/IceGrid/activation/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h db/node diff --git a/cpp/test/IceGrid/admin/.gitignore b/cpp/test/IceGrid/admin/.gitignore index 43b93111bf8..6d52720534e 100644 --- a/cpp/test/IceGrid/admin/.gitignore +++ b/cpp/test/IceGrid/admin/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend server +.depend db/node db/registry db/replica-* diff --git a/cpp/test/IceGrid/allocation/.gitignore b/cpp/test/IceGrid/allocation/.gitignore index 819e86ad169..b38ad0a165c 100644 --- a/cpp/test/IceGrid/allocation/.gitignore +++ b/cpp/test/IceGrid/allocation/.gitignore @@ -1,9 +1,11 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server verifier +.depend Test.cpp Test.h db/node diff --git a/cpp/test/IceGrid/deployer/.gitignore b/cpp/test/IceGrid/deployer/.gitignore index 7f02284cfee..acaef95b2cd 100644 --- a/cpp/test/IceGrid/deployer/.gitignore +++ b/cpp/test/IceGrid/deployer/.gitignore @@ -1,9 +1,11 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server libTestService.* +.depend Test.cpp Test.h build.txt diff --git a/cpp/test/IceGrid/distribution/.gitignore b/cpp/test/IceGrid/distribution/.gitignore index 43222375494..77c4fb4d540 100644 --- a/cpp/test/IceGrid/distribution/.gitignore +++ b/cpp/test/IceGrid/distribution/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h db/node diff --git a/cpp/test/IceGrid/noRestartUpdate/.gitignore b/cpp/test/IceGrid/noRestartUpdate/.gitignore index d12de56b4ca..1a26f311e2a 100644 --- a/cpp/test/IceGrid/noRestartUpdate/.gitignore +++ b/cpp/test/IceGrid/noRestartUpdate/.gitignore @@ -1,9 +1,11 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server libTestService.* +.depend Test.cpp Test.h db/node diff --git a/cpp/test/IceGrid/replicaGroup/.gitignore b/cpp/test/IceGrid/replicaGroup/.gitignore index 6c64605ce39..18519db5234 100644 --- a/cpp/test/IceGrid/replicaGroup/.gitignore +++ b/cpp/test/IceGrid/replicaGroup/.gitignore @@ -1,9 +1,11 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server libTestService.* +.depend Test.cpp Test.h build.txt diff --git a/cpp/test/IceGrid/replication/.gitignore b/cpp/test/IceGrid/replication/.gitignore index 06dd9d3bfba..a2fb0ecc07c 100644 --- a/cpp/test/IceGrid/replication/.gitignore +++ b/cpp/test/IceGrid/replication/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h build.txt diff --git a/cpp/test/IceGrid/session/.gitignore b/cpp/test/IceGrid/session/.gitignore index 41397371fa5..c975494fe1e 100644 --- a/cpp/test/IceGrid/session/.gitignore +++ b/cpp/test/IceGrid/session/.gitignore @@ -1,9 +1,11 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server verifier +.depend Test.cpp Test.h db/node diff --git a/cpp/test/IceGrid/simple/.gitignore b/cpp/test/IceGrid/simple/.gitignore index 6236c515c56..1593c12731f 100644 --- a/cpp/test/IceGrid/simple/.gitignore +++ b/cpp/test/IceGrid/simple/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h db/node diff --git a/cpp/test/IceGrid/update/.gitignore b/cpp/test/IceGrid/update/.gitignore index 43222375494..77c4fb4d540 100644 --- a/cpp/test/IceGrid/update/.gitignore +++ b/cpp/test/IceGrid/update/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h db/node diff --git a/cpp/test/IceSSL/configuration/.gitignore b/cpp/test/IceSSL/configuration/.gitignore index 67872faa673..3a3aae35bd8 100644 --- a/cpp/test/IceSSL/configuration/.gitignore +++ b/cpp/test/IceSSL/configuration/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client server +.depend Test.cpp Test.h diff --git a/cpp/test/IceStorm/federation/.gitignore b/cpp/test/IceStorm/federation/.gitignore index f6811ab9123..9f3e354edb6 100644 --- a/cpp/test/IceStorm/federation/.gitignore +++ b/cpp/test/IceStorm/federation/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend publisher subscriber +.depend Event.cpp Event.h build.txt diff --git a/cpp/test/IceStorm/federation2/.gitignore b/cpp/test/IceStorm/federation2/.gitignore index 1e15a552882..1ee63744e74 100644 --- a/cpp/test/IceStorm/federation2/.gitignore +++ b/cpp/test/IceStorm/federation2/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend publisher subscriber +.depend Event.cpp Event.h build.txt diff --git a/cpp/test/IceStorm/rep1/.gitignore b/cpp/test/IceStorm/rep1/.gitignore index a6eaee14920..9cd9b7ec547 100644 --- a/cpp/test/IceStorm/rep1/.gitignore +++ b/cpp/test/IceStorm/rep1/.gitignore @@ -1,9 +1,11 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend publisher subscriber sub +.depend Single.cpp Single.h build.txt diff --git a/cpp/test/IceStorm/repgrid/.gitignore b/cpp/test/IceStorm/repgrid/.gitignore index 34ee77907e3..6c0d77be0e0 100644 --- a/cpp/test/IceStorm/repgrid/.gitignore +++ b/cpp/test/IceStorm/repgrid/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Single.cpp Single.h build.txt diff --git a/cpp/test/IceStorm/repstress/.gitignore b/cpp/test/IceStorm/repstress/.gitignore index 3326cff4756..c1e2c6ba18a 100644 --- a/cpp/test/IceStorm/repstress/.gitignore +++ b/cpp/test/IceStorm/repstress/.gitignore @@ -1,9 +1,11 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend publisher subscriber control +.depend Single.cpp Controller.cpp Single.h diff --git a/cpp/test/IceStorm/single/.gitignore b/cpp/test/IceStorm/single/.gitignore index 9d7c0709185..7245563774f 100644 --- a/cpp/test/IceStorm/single/.gitignore +++ b/cpp/test/IceStorm/single/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend publisher subscriber +.depend Single.cpp Single.h build.txt diff --git a/cpp/test/IceStorm/stress/.gitignore b/cpp/test/IceStorm/stress/.gitignore index 1e15a552882..1ee63744e74 100644 --- a/cpp/test/IceStorm/stress/.gitignore +++ b/cpp/test/IceStorm/stress/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend publisher subscriber +.depend Event.cpp Event.h build.txt diff --git a/cpp/test/IceUtil/condvar/.gitignore b/cpp/test/IceUtil/condvar/.gitignore index 9feff7712b2..4498983a9de 100644 --- a/cpp/test/IceUtil/condvar/.gitignore +++ b/cpp/test/IceUtil/condvar/.gitignore @@ -1,5 +1,7 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend workqueue match +.depend diff --git a/cpp/test/IceUtil/ctrlCHandler/.gitignore b/cpp/test/IceUtil/ctrlCHandler/.gitignore index 1446b6586f5..f715a76859d 100644 --- a/cpp/test/IceUtil/ctrlCHandler/.gitignore +++ b/cpp/test/IceUtil/ctrlCHandler/.gitignore @@ -1,4 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend diff --git a/cpp/test/IceUtil/inputUtil/.gitignore b/cpp/test/IceUtil/inputUtil/.gitignore index 1446b6586f5..f715a76859d 100644 --- a/cpp/test/IceUtil/inputUtil/.gitignore +++ b/cpp/test/IceUtil/inputUtil/.gitignore @@ -1,4 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend diff --git a/cpp/test/IceUtil/priority/.gitignore b/cpp/test/IceUtil/priority/.gitignore index 1446b6586f5..f715a76859d 100644 --- a/cpp/test/IceUtil/priority/.gitignore +++ b/cpp/test/IceUtil/priority/.gitignore @@ -1,4 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend diff --git a/cpp/test/IceUtil/sha1/.gitignore b/cpp/test/IceUtil/sha1/.gitignore index 1446b6586f5..f715a76859d 100644 --- a/cpp/test/IceUtil/sha1/.gitignore +++ b/cpp/test/IceUtil/sha1/.gitignore @@ -1,4 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend diff --git a/cpp/test/IceUtil/stacktrace/.gitignore b/cpp/test/IceUtil/stacktrace/.gitignore index 1446b6586f5..f715a76859d 100644 --- a/cpp/test/IceUtil/stacktrace/.gitignore +++ b/cpp/test/IceUtil/stacktrace/.gitignore @@ -1,4 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend diff --git a/cpp/test/IceUtil/thread/.gitignore b/cpp/test/IceUtil/thread/.gitignore index 1446b6586f5..f715a76859d 100644 --- a/cpp/test/IceUtil/thread/.gitignore +++ b/cpp/test/IceUtil/thread/.gitignore @@ -1,4 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend diff --git a/cpp/test/IceUtil/timer/.gitignore b/cpp/test/IceUtil/timer/.gitignore index 1446b6586f5..f715a76859d 100644 --- a/cpp/test/IceUtil/timer/.gitignore +++ b/cpp/test/IceUtil/timer/.gitignore @@ -1,4 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend diff --git a/cpp/test/IceUtil/unicode/.gitignore b/cpp/test/IceUtil/unicode/.gitignore index 1446b6586f5..f715a76859d 100644 --- a/cpp/test/IceUtil/unicode/.gitignore +++ b/cpp/test/IceUtil/unicode/.gitignore @@ -1,4 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend diff --git a/cpp/test/IceUtil/uuid/.gitignore b/cpp/test/IceUtil/uuid/.gitignore index 1446b6586f5..f715a76859d 100644 --- a/cpp/test/IceUtil/uuid/.gitignore +++ b/cpp/test/IceUtil/uuid/.gitignore @@ -1,4 +1,6 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend diff --git a/cpp/test/Slice/keyword/.gitignore b/cpp/test/Slice/keyword/.gitignore index 0e03bd06e7e..b6ac5c9979a 100644 --- a/cpp/test/Slice/keyword/.gitignore +++ b/cpp/test/Slice/keyword/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Key.cpp Key.h diff --git a/cpp/test/Slice/macros/.gitignore b/cpp/test/Slice/macros/.gitignore index 505a9066685..dcdf5eb23c7 100644 --- a/cpp/test/Slice/macros/.gitignore +++ b/cpp/test/Slice/macros/.gitignore @@ -1,6 +1,8 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Test.h diff --git a/cpp/test/Slice/parser/.gitignore b/cpp/test/Slice/parser/.gitignore index 7732d7c018e..9fb83203e46 100644 --- a/cpp/test/Slice/parser/.gitignore +++ b/cpp/test/Slice/parser/.gitignore @@ -1,8 +1,10 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend CircularA.o CircularB.o +.depend CircularA.cpp CircularB.cpp CircularA.h diff --git a/cpp/test/Slice/structure/.gitignore b/cpp/test/Slice/structure/.gitignore index aec891a666e..c837849dc6b 100644 --- a/cpp/test/Slice/structure/.gitignore +++ b/cpp/test/Slice/structure/.gitignore @@ -1,7 +1,9 @@ // Generated by makegitignore.py // IMPORTANT: Do not edit this file -- any edits made here will be lost! +.depend client +.depend Test.cpp Forward.cpp Test.h diff --git a/cpp/test/Slice/utf8BOM/.gitignore b/cpp/test/Slice/utf8BOM/.gitignore index 067afe32e86..446425aa735 100644 --- a/cpp/test/Slice/utf8BOM/.gitignore +++ b/cpp/test/Slice/utf8BOM/.gitignore @@ -2,5 +2,6 @@ // IMPORTANT: Do not edit this file -- any edits made here will be lost! Test.o +.depend Test.cpp Test.h -- cgit v1.2.3 From a211fe1bbcb8e160136f3dd22b516ba751d4b02e Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 15 Mar 2016 10:14:53 +0100 Subject: ICE-7019 - remove db tools dependency on IcePatch2 --- cpp/config/Make.rules.mak | 2 +- cpp/src/IceGrid/IceGridDB.cpp | 4 +--- cpp/src/IceGrid/Makefile | 2 +- cpp/src/IceStorm/IceStormDB.cpp | 4 +--- cpp/src/IceStorm/Makefile | 2 +- cpp/src/IceUtil/FileUtil.cpp | 39 +++++++++++++++++++++++++++++++++++++++ cpp/src/IceUtil/FileUtil.h | 5 +++++ 7 files changed, 49 insertions(+), 9 deletions(-) diff --git a/cpp/config/Make.rules.mak b/cpp/config/Make.rules.mak index d22267568cc..72ae04fd9c9 100755 --- a/cpp/config/Make.rules.mak +++ b/cpp/config/Make.rules.mak @@ -166,7 +166,7 @@ RCFLAGS = -nologo !endif !if "$(WINRT)" != "yes" -ICEUTIL_OS_LIBS = rpcrt4.lib advapi32.lib DbgHelp.lib +ICEUTIL_OS_LIBS = rpcrt4.lib advapi32.lib DbgHelp.lib Shlwapi.lib ICE_OS_LIBS = advapi32.lib ws2_32.lib Iphlpapi.lib SSL_OS_LIBS = advapi32.lib secur32.lib crypt32.lib ws2_32.lib diff --git a/cpp/src/IceGrid/IceGridDB.cpp b/cpp/src/IceGrid/IceGridDB.cpp index fd4e9ddddc4..04cb5828d6f 100644 --- a/cpp/src/IceGrid/IceGridDB.cpp +++ b/cpp/src/IceGrid/IceGridDB.cpp @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -144,8 +143,7 @@ Client::run(int argc, char* argv[]) return EXIT_FAILURE; } - StringSeq files = IcePatch2Internal::readDirectory(dbPath); - if(!files.empty()) + if(!IceUtilInternal::isEmptyDirectory(dbPath)) { cerr << argv[0] << ": output directory is not empty: " << dbPath << endl; return EXIT_FAILURE; diff --git a/cpp/src/IceGrid/Makefile b/cpp/src/IceGrid/Makefile index 99d1b1f3d19..afa85e36c75 100644 --- a/cpp/src/IceGrid/Makefile +++ b/cpp/src/IceGrid/Makefile @@ -127,7 +127,7 @@ $(ADMIN): $(ADMIN_OBJS) $(LIBTARGETS) $(DB): $(DB_OBJS) $(LIBTARGETS) rm -f $@ - $(CXX) $(LDFLAGS) $(LDEXEFLAGS) -o $@ $(DB_OBJS) -lIceGrid -lGlacier2 -lIcePatch2 -lFreeze $(LIBS) + $(CXX) $(LDFLAGS) $(LDEXEFLAGS) -o $@ $(DB_OBJS) -lIceGrid -lGlacier2 -lFreeze $(LIBS) $(REGISTRY_SERVER): $(REGISTRY_SVR_OBJS) $(LIBTARGETS) rm -f $@ diff --git a/cpp/src/IceStorm/IceStormDB.cpp b/cpp/src/IceStorm/IceStormDB.cpp index 76b1aa04244..0777c842272 100644 --- a/cpp/src/IceStorm/IceStormDB.cpp +++ b/cpp/src/IceStorm/IceStormDB.cpp @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -141,8 +140,7 @@ Client::run(int argc, char* argv[]) return EXIT_FAILURE; } - StringSeq files = IcePatch2Internal::readDirectory(dbPath); - if(!files.empty()) + if(!IceUtilInternal::isEmptyDirectory(dbPath)) { cerr << argv[0] << ": output directory is not empty: " << dbPath << endl; return EXIT_FAILURE; diff --git a/cpp/src/IceStorm/Makefile b/cpp/src/IceStorm/Makefile index 203726eda15..83b770860f6 100644 --- a/cpp/src/IceStorm/Makefile +++ b/cpp/src/IceStorm/Makefile @@ -105,7 +105,7 @@ $(ADMIN): $(AOBJS) $(LIBTARGETS) $(DB): $(DOBJS) $(LIBTARGETS) rm -f $@ - $(CXX) $(LDFLAGS) $(LDEXEFLAGS) -o $@ $(DOBJS) -lIceStorm -lIcePatch2 -lFreeze $(LIBS) + $(CXX) $(LDFLAGS) $(LDEXEFLAGS) -o $@ $(DOBJS) -lIceStorm -lFreeze $(LIBS) $(MIGRATE): $(MOBJS) rm -f $@ diff --git a/cpp/src/IceUtil/FileUtil.cpp b/cpp/src/IceUtil/FileUtil.cpp index ea7fc606e65..dfcbf670b5c 100644 --- a/cpp/src/IceUtil/FileUtil.cpp +++ b/cpp/src/IceUtil/FileUtil.cpp @@ -17,8 +17,12 @@ #ifdef _WIN32 # include # include +# ifndef ICE_OS_WINRT +# include +# endif #else # include +# include #endif using namespace std; @@ -89,6 +93,41 @@ IceUtilInternal::directoryExists(const string& path) return true; } +// +// Determinte if a directory exists and is empty +// +#ifndef ICE_OS_WINRT +bool +IceUtilInternal::isEmptyDirectory(const string& path) +{ +# ifdef _WIN32 + return PathIsDirectoryEmptyW(IceUtil::stringToWstring(path, IceUtil::getProcessStringConverter()).c_str()); +# else + struct dirent* d; + DIR* dir = opendir(path.c_str()); + if(dir) + { + bool empty = true; + while((d = readdir(dir))) + { + string name(d->d_name); + if(name != "." && name != "..") + { + empty = false; + break; + } + } + closedir(dir); + return empty; + } + else + { + return false; + } +# endif +} +#endif + // // Determine if a regular file exists. // diff --git a/cpp/src/IceUtil/FileUtil.h b/cpp/src/IceUtil/FileUtil.h index 3b148f5dce4..8ff6af42406 100644 --- a/cpp/src/IceUtil/FileUtil.h +++ b/cpp/src/IceUtil/FileUtil.h @@ -40,6 +40,11 @@ ICE_UTIL_API bool fileExists(const std::string&); // ICE_UTIL_API bool directoryExists(const std::string&); +// +// Determinte if a directory exists and is empty +// +ICE_UTIL_API bool isEmptyDirectory(const std::string&); + #ifdef _WIN32 #if defined(__MINGW32__) -- cgit v1.2.3 From 30290208132c9a7fbfbef7398e116e84f2d31290 Mon Sep 17 00:00:00 2001 From: jose Date: Tue, 15 Mar 2016 06:12:26 -0400 Subject: Ruby 1.8 Ice/operations fix to no use force_encoding new in Ruby 1.9 --- ruby/test/Ice/operations/Twoways.rb | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/ruby/test/Ice/operations/Twoways.rb b/ruby/test/Ice/operations/Twoways.rb index 3ef8588ac55..e8a70e7e1a5 100644 --- a/ruby/test/Ice/operations/Twoways.rb +++ b/ruby/test/Ice/operations/Twoways.rb @@ -1,3 +1,4 @@ +# encoding: utf-8 # ********************************************************************** # # Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved. @@ -12,75 +13,75 @@ def twoways(communicator, p) literals = p.opStringLiterals(); - test(Test::S0 == "\\".force_encoding("utf-8") && + test(Test::S0 == "\\" && Test::S0 == Test::Sw0 && Test::S0 == literals[0] && Test::S0 == literals[11]); - test(Test::S1 == "A".force_encoding("utf-8") && + test(Test::S1 == "A" && Test::S1 == Test::Sw1 && Test::S1 == literals[1] && Test::S1 == literals[12]); - test(Test::S2 == "Ice".force_encoding("utf-8") && + test(Test::S2 == "Ice" && Test::S2 == Test::Sw2 && Test::S2 == literals[2] && Test::S2 == literals[13]); - test(Test::S3 == "A21".force_encoding("utf-8") && + test(Test::S3 == "A21" && Test::S3 == Test::Sw3 && Test::S3 == literals[3] && Test::S3 == literals[14]); - test(Test::S4 == "\\u0041 \\U00000041".force_encoding("utf-8") && + test(Test::S4 == "\\u0041 \\U00000041" && Test::S4 == Test::Sw4 && Test::S4 == literals[4] && Test::S4 == literals[15]); - test(Test::S5 == "\xc3\xbf".force_encoding("utf-8") && + test(Test::S5 == "\xc3\xbf" && Test::S5 == Test::Sw5 && Test::S5 == literals[5] && Test::S5 == literals[16]); - test(Test::S6 == "\xcf\xbf".force_encoding("utf-8") && + test(Test::S6 == "\xcf\xbf" && Test::S6 == Test::Sw6 && Test::S6 == literals[6] && Test::S6 == literals[17]); - test(Test::S7 == "\xd7\xb0".force_encoding("utf-8") && + test(Test::S7 == "\xd7\xb0" && Test::S7 == Test::Sw7 && Test::S7 == literals[7] && Test::S7 == literals[18]); - test(Test::S8 == "\xf0\x90\x80\x80".force_encoding("utf-8") && + test(Test::S8 == "\xf0\x90\x80\x80" && Test::S8 == Test::Sw8 && Test::S8 == literals[8] && Test::S8 == literals[19]); - test(Test::S9 == "\xf0\x9f\x8d\x8c".force_encoding("utf-8") && + test(Test::S9 == "\xf0\x9f\x8d\x8c" && Test::S9 == Test::Sw9 && Test::S9 == literals[9] && Test::S9 == literals[20]); - test(Test::S10 == "\xe0\xb6\xa7".force_encoding("utf-8") && + test(Test::S10 == "\xe0\xb6\xa7" && Test::S10 == Test::Sw10 && Test::S10 == literals[10] && Test::S10 == literals[21]); - test(Test::Ss0 == "\'\"\x3f\\\a\b\f\n\r\t\v".force_encoding("utf-8") && + test(Test::Ss0 == "\'\"\x3f\\\a\b\f\n\r\t\v" && Test::Ss0 == Test::Ss1 && Test::Ss0 == Test::Ss2 && Test::Ss0 == literals[22] && Test::Ss0 == literals[23] && Test::Ss0 == literals[24]); - test(Test::Ss3 == "\\\\U\\u\\".force_encoding("utf-8") && + test(Test::Ss3 == "\\\\U\\u\\" && Test::Ss3 == literals[25]); - test(Test::Ss4 == "\\A\\".force_encoding("utf-8") && + test(Test::Ss4 == "\\A\\" && Test::Ss4 == literals[26]); - test(Test::Ss5 == "\\u0041\\".force_encoding("utf-8") && + test(Test::Ss5 == "\\u0041\\" && Test::Ss5 == literals[27]); test(Test::Su0 == Test::Su1 && -- cgit v1.2.3 From ebf507c026e5a4d640aede9bde1bc2fc5d4e0cdc Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Tue, 15 Mar 2016 15:37:37 -0700 Subject: minor comment fix in IceUtil --- cpp/src/IceUtil/FileUtil.cpp | 2 +- cpp/src/IceUtil/FileUtil.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/IceUtil/FileUtil.cpp b/cpp/src/IceUtil/FileUtil.cpp index dfcbf670b5c..4e3dc407804 100644 --- a/cpp/src/IceUtil/FileUtil.cpp +++ b/cpp/src/IceUtil/FileUtil.cpp @@ -94,7 +94,7 @@ IceUtilInternal::directoryExists(const string& path) } // -// Determinte if a directory exists and is empty +// Determine if a directory exists and is empty. // #ifndef ICE_OS_WINRT bool diff --git a/cpp/src/IceUtil/FileUtil.h b/cpp/src/IceUtil/FileUtil.h index 8ff6af42406..7d5c478834d 100644 --- a/cpp/src/IceUtil/FileUtil.h +++ b/cpp/src/IceUtil/FileUtil.h @@ -41,7 +41,7 @@ ICE_UTIL_API bool fileExists(const std::string&); ICE_UTIL_API bool directoryExists(const std::string&); // -// Determinte if a directory exists and is empty +// Determine if a directory exists and is empty. // ICE_UTIL_API bool isEmptyDirectory(const std::string&); -- cgit v1.2.3 From a0b5da479c78037c562158fb55f643c58f4111e7 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Tue, 15 Mar 2016 15:56:35 -0700 Subject: ICE-7014 - Python docstring fixes --- cpp/src/Slice/PythonUtil.cpp | 766 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 612 insertions(+), 154 deletions(-) diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index 38619b6db3e..2e714214052 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -165,7 +165,27 @@ private: void collectClassMembers(const ClassDefPtr&, MemberInfoList&, bool); void collectExceptionMembers(const ExceptionPtr&, MemberInfoList&, bool); - string editComment(const string&); + typedef vector StringVec; + + StringVec stripMarkup(const string&); + + void writeDocstring(const string&, const string& = ""); + void writeDocstring(const string&, const DataMemberList&); + void writeDocstring(const string&, const EnumeratorList&); + + typedef map StringMap; + struct OpComment + { + StringVec description; + StringMap params; + string returns; + StringMap exceptions; + }; + bool parseOpComment(const string&, OpComment&); + + enum DocstringMode { DocSync, DocAsyncBegin, DocAsyncEnd, DocDispatch, DocAsyncDispatch }; + + void writeDocstring(const OperationPtr&, DocstringMode, bool); Output& _out; set& _moduleHistory; @@ -352,11 +372,7 @@ Slice::Python::CodeVisitor::visitModuleStart(const ModulePtr& p) } _out << nl << "__name__ = '" << abs << "'"; - string comment = p->comment(); - if(!comment.empty()) - { - _out << nl << "_M_" << abs << ".__doc__ = '''" << editComment(comment) << "'''"; - } + writeDocstring(p->comment(), "_M_" + abs + ".__doc__ = "); _moduleStack.push_front(abs); return true; @@ -449,11 +465,7 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) _out.inc(); - string comment = p->comment(); - if(!comment.empty()) - { - _out << nl << "'''" << editComment(comment) << "'''"; - } + writeDocstring(p->comment(), p->dataMembers()); // // __init__ @@ -582,11 +594,9 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) } _out << "):"; _out.inc(); - comment = (*oli)->comment(); - if(!comment.empty()) - { - _out << nl << "'''" << editComment(comment) << "'''"; - } + + writeDocstring(*oli, DocAsyncDispatch, false); + _out << nl << "pass"; _out.dec(); } @@ -609,11 +619,7 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) } _out << "):"; _out.inc(); - comment = (*oli)->comment(); - if(!comment.empty()) - { - _out << nl << "'''" << editComment(comment) << "'''"; - } + writeDocstring(*oli, DocDispatch, p->isLocal()); _out << nl << "pass"; _out.dec(); } @@ -680,17 +686,8 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) } } - comment = (*oli)->comment(); - if(!comment.empty()) - { - comment = "'''" + editComment(comment) + "'''"; - } - _out << sp; - if(!comment.empty()) - { - _out << nl << comment; - } + writeDocstring(*oli, DocSync, false); _out << nl << "def " << fixedOpName << "(self"; if(!inParams.empty()) { @@ -710,10 +707,7 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) // Async operations. // _out << sp; - if(!comment.empty()) - { - _out << nl << comment; - } + writeDocstring(*oli, DocAsyncBegin, false); _out << nl << "def begin_" << (*oli)->name() << "(self"; if(!inParams.empty()) { @@ -730,10 +724,7 @@ Slice::Python::CodeVisitor::visitClassDefStart(const ClassDefPtr& p) _out.dec(); _out << sp; - if(!comment.empty()) - { - _out << nl << comment; - } + writeDocstring(*oli, DocAsyncEnd, false); _out << nl << "def end_" << (*oli)->name() << "(self, _r):"; _out.inc(); _out << nl << "return _M_" << abs << "._op_" << (*oli)->name() << ".end(self, _r)"; @@ -1032,14 +1023,10 @@ Slice::Python::CodeVisitor::visitExceptionStart(const ExceptionPtr& p) _out << "):"; _out.inc(); - string comment = p->comment(); - if(!comment.empty()) - { - _out << nl << "'''" << editComment(comment) << "'''"; - } - DataMemberList members = p->dataMembers(); + writeDocstring(p->comment(), members); + // // __init__ // @@ -1160,10 +1147,10 @@ Slice::Python::CodeVisitor::visitStructStart(const StructPtr& p) string scoped = p->scoped(); string abs = getAbsolute(p); string name = fixIdent(p->name()); + DataMemberList members = p->dataMembers(); MemberInfoList memberList; { - DataMemberList members = p->dataMembers(); for(DataMemberList::iterator q = members.begin(); q != members.end(); ++q) { memberList.push_back(MemberInfo()); @@ -1179,11 +1166,7 @@ Slice::Python::CodeVisitor::visitStructStart(const StructPtr& p) _out << nl << "class " << name << "(object):"; _out.inc(); - string comment = p->comment(); - if(!comment.empty()) - { - _out << nl << "'''" << editComment(comment) << "'''"; - } + writeDocstring(p->comment(), members); _out << nl << "def __init__(self"; writeConstructorParams(memberList); @@ -1513,11 +1496,7 @@ Slice::Python::CodeVisitor::visitEnum(const EnumPtr& p) _out << nl << "class " << name << "(Ice.EnumBase):"; _out.inc(); - string comment = p->comment(); - if(!comment.empty()) - { - _out << nl << "'''" << editComment(comment) << "'''"; - } + writeDocstring(p->comment(), enums); _out << sp << nl << "def __init__(self, _n, _v):"; _out.inc(); @@ -2133,25 +2112,25 @@ Slice::Python::CodeVisitor::collectExceptionMembers(const ExceptionPtr& p, Membe } } -string -Slice::Python::CodeVisitor::editComment(const string& comment) +Slice::Python::CodeVisitor::StringVec +Slice::Python::CodeVisitor::stripMarkup(const string& comment) { // // Strip HTML markup and javadoc links. // - string result = comment; + string text = comment; string::size_type pos = 0; do { - pos = result.find('<', pos); + pos = text.find('<', pos); if(pos != string::npos) { - string::size_type endpos = result.find('>', pos); + string::size_type endpos = text.find('>', pos); if(endpos == string::npos) { break; } - result.erase(pos, endpos - pos + 1); + text.erase(pos, endpos - pos + 1); } } while(pos != string::npos); @@ -2159,18 +2138,18 @@ Slice::Python::CodeVisitor::editComment(const string& comment) pos = 0; do { - pos = result.find(link, pos); + pos = text.find(link, pos); if(pos != string::npos) { - result.erase(pos, link.size()); - string::size_type endpos = result.find('}', pos); + text.erase(pos, link.size()); + string::size_type endpos = text.find('}', pos); if(endpos != string::npos) { - string::size_type identpos = result.find_first_not_of(" \t#", pos); + string::size_type identpos = text.find_first_not_of(" \t#", pos); if(identpos != string::npos && identpos < endpos) { - string ident = result.substr(identpos, endpos - identpos); - result.replace(pos, endpos - pos + 1, fixIdent(ident)); + string ident = text.substr(identpos, endpos - identpos); + text.replace(pos, endpos - pos + 1, fixIdent(ident)); } } } @@ -2187,160 +2166,639 @@ Slice::Python::CodeVisitor::editComment(const string& comment) // Look for the next @ and delete up to that, or // to the end of the string, if not found. // - pos = result.find(seeTag, pos); + pos = text.find(seeTag, pos); if(pos != string::npos) { - string::size_type next = result.find('@', pos + seeTag.size()); + string::size_type next = text.find('@', pos + seeTag.size()); if(next != string::npos) { - result.erase(pos, next - pos); + text.erase(pos, next - pos); } else { - result.erase(pos, string::npos); + text.erase(pos, string::npos); } } } while(pos != string::npos); // - // Reformat @param, @return, and @throws. + // Escape triple quotes. // - static const string paramTag = "@param"; + static const string singleQuotes = "'''"; pos = 0; - bool first = true; - do + while((pos = text.find(singleQuotes, pos)) != string::npos) { - pos = result.find(paramTag, pos); - if(pos != string::npos) + text.insert(pos, "\\"); + pos += singleQuotes.size() + 1; + } + static const string doubleQuotes = "\"\"\""; + pos = 0; + while((pos = text.find(doubleQuotes, pos)) != string::npos) + { + text.insert(pos, "\\"); + pos += doubleQuotes.size() + 1; + } + + // + // Fold multiple empty lines. + // + pos = 0; + while(true) + { + pos = text.find('\n', pos); + if(pos == string::npos) + { + break; + } + + // + // Skip the next LF or CR/LF, if present. + // + if(pos < text.size() - 1 && text[pos + 1] == '\n') + { + pos += 2; + } + else if(pos < text.size() - 2 && text[pos + 1] == '\r' && text[pos + 2] == '\n') + { + pos += 3; + } + else + { + ++pos; + continue; + } + + // + // Erase any more CR/LF characters. + // + string::size_type next = text.find_first_not_of("\r\n", pos); + if(next != string::npos) + { + text.erase(pos, next - pos); + } + } + + // + // Remove trailing whitespace. + // + pos = text.find_last_not_of(" \t\r\n"); + if(pos != string::npos) + { + text.erase(pos + 1, text.size() - pos - 1); + } + + // + // Split text into lines. + // + StringVec lines; + if(!text.empty()) + { + string::size_type start = 0; + while(start != string::npos) { - result.replace(pos, paramTag.size() + 1, " "); + string::size_type nl = text.find_first_of("\r\n", start); + string line; + if(nl != string::npos) + { + line = text.substr(start, nl - start); + start = nl; + } + else + { + line = text.substr(start); + start = text.size(); + } + + lines.push_back(line); + + start = text.find_first_not_of("\r\n", start); + } + } - if(first) + return lines; +} + +void +Slice::Python::CodeVisitor::writeDocstring(const string& comment, const string& prefix) +{ + StringVec lines = stripMarkup(comment); + if(lines.empty()) + { + return; + } + + _out << nl << prefix << "\"\"\""; + + for(StringVec::const_iterator q = lines.begin(); q != lines.end(); ++q) + { + if(q != lines.begin()) + { + _out << nl; + } + _out << *q; + } + + _out << "\"\"\""; +} + +void +Slice::Python::CodeVisitor::writeDocstring(const string& comment, const DataMemberList& members) +{ + StringVec lines = stripMarkup(comment); + if(lines.empty()) + { + return; + } + + _out << nl << "\"\"\""; + + for(StringVec::const_iterator q = lines.begin(); q != lines.end(); ++q) + { + if(q != lines.begin()) + { + _out << nl; + } + _out << *q; + } + + if(!members.empty()) + { + // + // Collect docstrings (if any) for the members. + // + map docs; + for(DataMemberList::const_iterator m = members.begin(); m != members.end(); ++m) + { + StringVec doc = stripMarkup((*m)->comment()); + if(!doc.empty()) { - string::size_type bol = result.rfind('\n', pos); - if(bol == string::npos) - { - bol = 0; - } - else + docs[(*m)->name()] = doc; + } + } + // + // Only emit members if there's a docstring for at least one member. + // + if(!docs.empty()) + { + _out << nl << "Members:"; + for(DataMemberList::const_iterator m = members.begin(); m != members.end(); ++m) + { + _out << nl << fixIdent((*m)->name()) << " -- "; + map::iterator p = docs.find((*m)->name()); + if(p != docs.end()) { - bol++; + for(StringVec::const_iterator q = p->second.begin(); q != p->second.end(); ++q) + { + if(q != p->second.begin()) + { + _out << nl; + } + _out << *q; + } } - result.insert(bol, "Arguments:\n"); - first = false; } } - } while(pos != string::npos); + } - static const string returnTag = "@return"; - pos = result.find(returnTag); - first = true; - if(pos != string::npos) + _out << "\"\"\""; +} + +void +Slice::Python::CodeVisitor::writeDocstring(const string& comment, const EnumeratorList& enums) +{ + StringVec lines = stripMarkup(comment); + if(lines.empty()) { - result.replace(pos, returnTag.size() + 1, " "); - string::size_type bol = result.rfind('\n', pos); - if(bol == string::npos) + return; + } + + _out << nl << "\"\"\""; + + for(StringVec::const_iterator q = lines.begin(); q != lines.end(); ++q) + { + if(q != lines.begin()) { - bol = 0; + _out << nl; } - else + _out << *q; + } + + if(!enums.empty()) + { + // + // Collect docstrings (if any) for the enumerators. + // + map docs; + for(EnumeratorList::const_iterator e = enums.begin(); e != enums.end(); ++e) { - bol++; + StringVec doc = stripMarkup((*e)->comment()); + if(!doc.empty()) + { + docs[(*e)->name()] = doc; + } + } + // + // Only emit enumerators if there's a docstring for at least one enumerator. + // + if(!docs.empty()) + { + _out << nl << "Enumerators:"; + for(EnumeratorList::const_iterator e = enums.begin(); e != enums.end(); ++e) + { + _out << nl << fixIdent((*e)->name()) << " -- "; + map::iterator p = docs.find((*e)->name()); + if(p != docs.end()) + { + for(StringVec::const_iterator q = p->second.begin(); q != p->second.end(); ++q) + { + if(q != p->second.begin()) + { + _out << nl; + } + _out << *q; + } + } + } } - result.insert(bol, "Returns:\n"); } - static const string throwsTag = "@throws"; - pos = 0; - first = true; - do + _out << "\"\"\""; +} + +bool +Slice::Python::CodeVisitor::parseOpComment(const string& comment, OpComment& c) +{ + // + // Remove most javadoc & HTML markup. + // + StringVec lines = stripMarkup(comment); + if(lines.empty()) { - pos = result.find(throwsTag, pos); - if(pos != string::npos) - { - result.replace(pos, throwsTag.size() + 1, " "); + return false; + } + + // + // Extract the descriptions of parameters, exceptions and return values. + // + string name; + bool inParam = false, inException = false, inReturn = false; + vector::size_type i = 0; + while(i < lines.size()) + { + string l = lines[i]; + string::size_type paramTag = l.find("@param"); + string::size_type throwTag = l.find("@throw"); + string::size_type returnTag = l.find("@return"); - if(first) + if(paramTag != string::npos) + { + string::size_type pos = l.find_first_of(" \t", paramTag); + if(pos != string::npos) + { + pos = l.find_first_not_of(" \t", pos); + } + if(pos != string::npos) { - string::size_type bol = result.rfind('\n', pos); - if(bol == string::npos) + string::size_type namePos = pos; + pos = l.find_first_of(" \t", pos); + inParam = true; + inException = false; + inReturn = false; + if(pos == string::npos) { - bol = 0; + // + // Doc assumed to have the format + // + // @param foo + // Description of foo... + // + name = l.substr(namePos); + c.params[name] = ""; } else { - bol++; + name = l.substr(namePos, pos - namePos); + pos = l.find_first_not_of(" \t", pos); + if(pos != string::npos) + { + c.params[name] = l.substr(pos); + } + else + { + c.params[name] = ""; + } + } + } + lines.erase(lines.begin() + i); + continue; + } + else if(throwTag != string::npos) + { + string::size_type pos = l.find_first_of(" \t", throwTag); + if(pos != string::npos) + { + pos = l.find_first_not_of(" \t", pos); + } + if(pos != string::npos) + { + string::size_type namePos = pos; + pos = l.find_first_of(" \t", pos); + inException = true; + inParam = false; + inReturn = false; + if(pos == string::npos) + { + // + // Doc assumed to have the format + // + // @throw foo + // Description of foo... + // + name = l.substr(namePos); + c.exceptions[name] = ""; + } + else + { + name = l.substr(namePos, pos - namePos); + pos = l.find_first_not_of(" \t", pos); + if(pos != string::npos) + { + c.exceptions[name] = l.substr(pos); + } + else + { + c.exceptions[name] = ""; + } + } + } + lines.erase(lines.begin() + i); + continue; + } + else if(returnTag != string::npos) + { + string::size_type pos = l.find_first_of(" \t", returnTag); + if(pos != string::npos) + { + pos = l.find_first_not_of(" \t", pos); + } + if(pos != string::npos) + { + inReturn = true; + inException = false; + inParam = false; + c.returns = l.substr(pos); + } + lines.erase(lines.begin() + i); + continue; + } + else + { + // + // We didn't find a tag so we assume this line is a continuation of a + // previous description. + // + string::size_type pos = l.find_first_not_of(" \t"); + if(pos != string::npos && l[pos] != '@') + { + if(inParam) + { + assert(!name.empty()); + if(!c.params[name].empty()) + { + c.params[name] += " "; + } + c.params[name] += l.substr(pos); + lines.erase(lines.begin() + i); + continue; + } + else if(inException) + { + assert(!name.empty()); + if(!c.exceptions[name].empty()) + { + c.exceptions[name] += " "; + } + c.exceptions[name] += l.substr(pos); + lines.erase(lines.begin() + i); + continue; + } + else if(inReturn) + { + if(!c.returns.empty()) + { + c.returns += " "; + } + c.returns += l.substr(pos); + lines.erase(lines.begin() + i); + continue; } - result.insert(bol, "Exceptions:\n"); - first = false; } } - } while(pos != string::npos); + + i++; + } // - // Escape triple quotes. + // All remaining lines become the general description. // - static const string quotes = "'''"; - pos = 0; - do + for(vector::iterator p = lines.begin(); p != lines.end(); ++p) { - pos = result.find(quotes, pos); - if(pos != string::npos) + if(p->find_first_not_of(" \t\n\r") != string::npos) { - result.insert(pos, "\\"); - pos += quotes.size() + 1; + c.description.push_back(*p); } - } while(pos != string::npos); + } + + return true; +} + +void +Slice::Python::CodeVisitor::writeDocstring(const OperationPtr& op, DocstringMode mode, bool local) +{ + OpComment comment; + if(!parseOpComment(op->comment(), comment)) + { + return; + } + + TypePtr ret = op->returnType(); + ParamDeclList params = op->parameters(); + vector inParams, outParams; + for(ParamDeclList::iterator p = params.begin(); p != params.end(); ++p) + { + if((*p)->isOutParam()) + { + outParams.push_back((*p)->name()); + } + else + { + inParams.push_back((*p)->name()); + } + } + + if(comment.description.empty()) + { + if((mode == DocSync || mode == DocDispatch) && comment.params.empty() && comment.exceptions.empty() && + comment.returns.empty()) + { + return; + } + else if(mode == DocAsyncBegin && inParams.empty()) + { + return; + } + else if(mode == DocAsyncEnd && outParams.empty() && comment.returns.empty()) + { + return; + } + else if(mode == DocAsyncDispatch && inParams.empty() && comment.exceptions.empty()) + { + return; + } + } // - // Fold multiple empty lines. + // Emit the general description. // - pos = 0; - while(true) + _out << nl << "\"\"\""; + if(!comment.description.empty()) { - pos = result.find('\n', pos); - if(pos == string::npos) + for(StringVec::const_iterator q = comment.description.begin(); q != comment.description.end(); ++q) { - break; + if(q != comment.description.begin()) + { + _out << nl; + } + _out << *q; } + } - // - // Skip the next LF or CR/LF, if present. - // - if(pos < result.size() - 1 && result[pos + 1] == '\n') + // + // Emit arguments. + // + bool needArgs = false; + switch(mode) + { + case DocSync: + case DocAsyncBegin: + case DocDispatch: + needArgs = !local || !inParams.empty(); + break; + case DocAsyncEnd: + case DocAsyncDispatch: + needArgs = true; + break; + } + + if(needArgs) + { + _out << nl << "Arguments:"; + if(mode == DocAsyncDispatch) { - pos += 2; + _out << nl << "_cb -- The asynchronous callback object."; } - else if(pos < result.size() - 2 && result[pos + 1] == '\r' && result[pos + 2] == '\n') + for(vector::iterator q = inParams.begin(); q != inParams.end(); ++q) { - pos += 3; + string fixed = fixIdent(*q); + _out << nl << fixed << " -- "; + StringMap::const_iterator r = comment.params.find(*q); + if(r == comment.params.end()) + { + r = comment.params.find(fixed); // Just in case. + } + if(r != comment.params.end()) + { + _out << r->second; + } } - else + if(mode == DocAsyncBegin) { - ++pos; - continue; + _out << nl << "_response -- The asynchronous response callback." + << nl << "_ex -- The asynchronous exception callback." + << nl << "_sent -- The asynchronous sent callback."; } - - // - // Erase any more CR/LF characters. - // - string::size_type next = result.find_first_not_of("\r\n", pos); - if(next != string::npos) + if(!local && (mode == DocSync || mode == DocAsyncBegin)) + { + _out << nl << "_ctx -- The request context for the invocation."; + } + if(!local && (mode == DocDispatch || mode == DocAsyncDispatch)) { - result.erase(pos, next - pos); + _out << nl << "current -- The Current object for the invocation."; } } + else if(mode == DocAsyncEnd) + { + _out << nl << "Arguments:" + << nl << "_r - The asynchronous result object for the invocation."; + } // - // Remove trailing whitespace. + // Emit return value(s). // - pos = result.find_last_not_of(" \t\r\n"); - if(pos != string::npos) + if(mode == DocAsyncBegin) { - result.erase(pos + 1, result.size() - pos - 1); + _out << nl << "Returns: An asynchronous result object for the invocation."; } - return result; + if((mode == DocSync || mode == DocAsyncEnd || mode == DocDispatch) && (ret || !outParams.empty())) + { + if((outParams.size() + (ret ? 1 : 0)) > 1) + { + _out << nl << "Returns a tuple containing the following:"; + if(ret) + { + _out << nl << "_retval -- " << comment.returns; + } + for(vector::iterator q = outParams.begin(); q != outParams.end(); ++q) + { + string fixed = fixIdent(*q); + _out << nl << fixed << " -- "; + StringMap::const_iterator r = comment.params.find(*q); + if(r == comment.params.end()) + { + r = comment.params.find(fixed); // Just in case. + } + if(r != comment.params.end()) + { + _out << r->second; + } + } + } + else if(ret && !comment.returns.empty()) + { + _out << nl << "Returns: " << comment.returns; + } + else if(!outParams.empty()) + { + assert(outParams.size() == 1); + _out << nl << "Returns:"; + string fixed = fixIdent(outParams[0]); + _out << nl << fixed << " -- "; + StringMap::const_iterator r = comment.params.find(outParams[0]); + if(r == comment.params.end()) + { + r = comment.params.find(fixed); // Just in case. + } + if(r != comment.params.end()) + { + _out << r->second; + } + } + } + + // + // Emit exceptions. + // + if((mode == DocSync || mode == DocAsyncEnd || mode == DocDispatch || mode == DocAsyncDispatch) && + !comment.exceptions.empty()) + { + _out << nl << "Throws:"; + for(StringMap::const_iterator r = comment.exceptions.begin(); r != comment.exceptions.end(); ++r) + { + _out << nl << r->first << " -- " << r->second; + } + } + _out << "\"\"\""; } void -- cgit v1.2.3 From 992f17cb8eb3ac3d7448212ee83db1a03dd51bed Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Wed, 16 Mar 2016 09:04:18 +0100 Subject: Fix for ICE-7020 - php tests will now exit with exit status = 1 if there's a test failure --- php/test/Ice/acm/Client.php | 3 ++- php/test/Ice/binding/Client.php | 9 ++++---- php/test/Ice/checksum/Client.php | 3 ++- php/test/Ice/defaultValue/Client.php | 3 ++- php/test/Ice/enums/Client.php | 3 ++- php/test/Ice/exceptions/Client.php | 3 ++- php/test/Ice/facets/Client.php | 3 ++- php/test/Ice/info/Client.php | 3 ++- php/test/Ice/inheritance/Client.php | 3 ++- php/test/Ice/ini/Client.php | 3 ++- php/test/Ice/ini/ClientWithProfile.php | 3 ++- php/test/Ice/objects/Client.php | 7 ++++--- php/test/Ice/operations/Client.php | 33 +++++++++++++++--------------- php/test/Ice/optional/Client.php | 9 ++++---- php/test/Ice/proxy/Client.php | 9 ++++---- php/test/Ice/slicing/exceptions/Client.php | 3 ++- php/test/Ice/slicing/objects/Client.php | 3 ++- php/test/Slice/keyword/Client.php | 3 ++- php/test/Slice/macros/Client.php | 3 ++- php/test/Slice/structure/Client.php | 3 ++- 20 files changed, 66 insertions(+), 46 deletions(-) diff --git a/php/test/Ice/acm/Client.php b/php/test/Ice/acm/Client.php index b559a9d7d1d..6a0a63dfa52 100644 --- a/php/test/Ice/acm/Client.php +++ b/php/test/Ice/acm/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/binding/Client.php b/php/test/Ice/binding/Client.php index 13bd6cc6677..3b3c376f033 100644 --- a/php/test/Ice/binding/Client.php +++ b/php/test/Ice/binding/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } @@ -187,7 +188,7 @@ function allTests($communicator) // $com->deactivateObjectAdapter($adapters[2]); $test = createTestIntfPrx($adapters); - test($test->getAdapterName() == "Adapter12"); + test($test->getAdapterName() == "Adapter12"); deactivate($com, $adapters); } @@ -280,7 +281,7 @@ function allTests($communicator) // // Now, re-activate the adapters with the same endpoints in the opposite // order. - // + // $adapters[] = $com->createObjectAdapter("Adapter36", $endpoints[2]->toString()); for($i = 0; $i < $nRetry && $test->getAdapterName() == "Adapter36"; $i++); test($i == $nRetry); @@ -419,7 +420,7 @@ function allTests($communicator) // // Now, re-activate the adapters with the same endpoints in the opposite // order. - // + // $adapters[] = $com->createObjectAdapter("Adapter66", $endpoints[2]->toString()); for($i = 0; $i < $nRetry && $test->getAdapterName() == "Adapter66"; $i++); test($i == $nRetry); diff --git a/php/test/Ice/checksum/Client.php b/php/test/Ice/checksum/Client.php index a84685f44ca..a14cbe4da01 100644 --- a/php/test/Ice/checksum/Client.php +++ b/php/test/Ice/checksum/Client.php @@ -26,7 +26,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/defaultValue/Client.php b/php/test/Ice/defaultValue/Client.php index caf06d93d70..29fa33a2c6c 100644 --- a/php/test/Ice/defaultValue/Client.php +++ b/php/test/Ice/defaultValue/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/enums/Client.php b/php/test/Ice/enums/Client.php index c61c9c04c48..4ce07324735 100644 --- a/php/test/Ice/enums/Client.php +++ b/php/test/Ice/enums/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/exceptions/Client.php b/php/test/Ice/exceptions/Client.php index 0d9feaf9da9..cfc27d988ad 100644 --- a/php/test/Ice/exceptions/Client.php +++ b/php/test/Ice/exceptions/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/facets/Client.php b/php/test/Ice/facets/Client.php index 32dc94e573e..d4a8d306ee5 100644 --- a/php/test/Ice/facets/Client.php +++ b/php/test/Ice/facets/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/info/Client.php b/php/test/Ice/info/Client.php index 3378395ee9d..64632cbd616 100644 --- a/php/test/Ice/info/Client.php +++ b/php/test/Ice/info/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/inheritance/Client.php b/php/test/Ice/inheritance/Client.php index 33c82f8bb6b..50a544c2752 100644 --- a/php/test/Ice/inheritance/Client.php +++ b/php/test/Ice/inheritance/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/ini/Client.php b/php/test/Ice/ini/Client.php index 47eade542b2..1594ae0a188 100644 --- a/php/test/Ice/ini/Client.php +++ b/php/test/Ice/ini/Client.php @@ -21,7 +21,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/ini/ClientWithProfile.php b/php/test/Ice/ini/ClientWithProfile.php index f7f3a4f21ee..ba4909e639e 100644 --- a/php/test/Ice/ini/ClientWithProfile.php +++ b/php/test/Ice/ini/ClientWithProfile.php @@ -21,7 +21,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/objects/Client.php b/php/test/Ice/objects/Client.php index 1201d0650d1..d6e33ee42f7 100644 --- a/php/test/Ice/objects/Client.php +++ b/php/test/Ice/objects/Client.php @@ -171,7 +171,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } @@ -346,7 +347,7 @@ function allTests($communicator) $h = $initial->getH(); test($h != null and $h instanceof Test_H); echo "ok\n"; - + echo "getting D1... "; flush(); $d1 = $initial->getD1(new Test_D1(new Test_A1("a1"), new Test_A1("a2"), new Test_A1("a3"), new Test_A1("a4"))); @@ -355,7 +356,7 @@ function allTests($communicator) test($d1->a3->name == "a3"); test($d1->a4->name == "a4"); echo "ok\n"; - + echo "throw EDerived... "; flush(); try diff --git a/php/test/Ice/operations/Client.php b/php/test/Ice/operations/Client.php index da449507589..b5426df1ef8 100644 --- a/php/test/Ice/operations/Client.php +++ b/php/test/Ice/operations/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } @@ -41,8 +42,8 @@ function twoways($communicator, $p) $myDerivedClass = $NS ? "Test\\MyDerivedClass" : "Test_MyDerivedClass"; $myClass = $NS ? "Test\\MyClass" : "Test_MyClass"; $objectPrxHelper = $NS ? "Ice\\ObjectPrxHelper" : "Ice_ObjectPrxHelper"; - - + + $s0 = $NS ? constant("Test\\s0") : constant("Test_s0"); $s1 = $NS ? constant("Test\\s1") : constant("Test_s1"); $s2 = $NS ? constant("Test\\s2") : constant("Test_s2"); @@ -54,7 +55,7 @@ function twoways($communicator, $p) $s8 = $NS ? constant("Test\\s8") : constant("Test_s8"); $s9 = $NS ? constant("Test\\s9") : constant("Test_s9"); $s10 = $NS ? constant("Test\\s10") : constant("Test_s10"); - + $sw0 = $NS ? constant("Test\\sw0") : constant("Test_sw0"); $sw1 = $NS ? constant("Test\\sw1") : constant("Test_sw1"); $sw2 = $NS ? constant("Test\\sw2") : constant("Test_sw2"); @@ -81,7 +82,7 @@ function twoways($communicator, $p) { $literals = $p->opStringLiterals(); - test($s0 == "\\" && + test($s0 == "\\" && $s0 == $sw0 && $s0 == $literals[0] && $s0 == $literals[11]); @@ -95,8 +96,8 @@ function twoways($communicator, $p) $s2 == $sw2 && $s2 == $literals[2] && $s2 == $literals[13]); - - test($s3 == "A21" && + + test($s3 == "A21" && $s3 == $sw3 && $s3 == $literals[3] && $s3 == $literals[14]); @@ -110,22 +111,22 @@ function twoways($communicator, $p) $s5 == $sw5 && $s5 == $literals[5] && $s5 == $literals[16]); - + test($s6 == "\xcf\xbf" && $s6 == $sw6 && $s6 == $literals[6] && $s6 == $literals[17]); - + test($s7 == "\xd7\xb0" && $s7 == $sw7 && $s7 == $literals[7] && $s7 == $literals[18]); - + test($s8 == "\xf0\x90\x80\x80" && $s8 == $sw8 && $s8 == $literals[8] && $s8 == $literals[19]); - + test($s9 == "\xf0\x9f\x8d\x8c" && $s9 == $sw9 && $s9 == $literals[9] && @@ -135,23 +136,23 @@ function twoways($communicator, $p) $s10 == $sw10 && $s10 == $literals[10] && $s10 == $literals[21]); - + test($ss0 == "'\"?\\\007\010\f\n\r\t\v" && $ss0 == $ss1 && $ss1 == $ss2 && $ss0 == $literals[22] && $ss0 == $literals[23] && $ss0 == $literals[24]); - + test($ss3 == "\\\\U\\u\\" && $ss3 == $literals[25]); - + test($ss4 == "\\A\\" && $ss4 == $literals[26]); - + test($ss5 == "\\u0041\\" && $ss5 == $literals[27]); - + test($su0 == $su1 && $su0 == $su2 && $su0 == $literals[28] && diff --git a/php/test/Ice/optional/Client.php b/php/test/Ice/optional/Client.php index 636e25c6240..85afef6f086 100644 --- a/php/test/Ice/optional/Client.php +++ b/php/test/Ice/optional/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } @@ -337,12 +338,12 @@ function allTests($communicator) test($oo != Ice_Unset); $initial->ice_encodingVersion($Ice_Encoding_1_0)->returnOptionalClass(true, $oo); test($oo == Ice_Unset); - - + + $gcls = $NS ? "Test\\G" : "Test_G"; $g1cls = $NS ? "Test\\G1" : "Test_G1"; $g2cls = $NS ? "Test\\G2" : "Test_G2"; - + $g = new $gcls; $g->gg1Opt = new $g1cls("gg1Opt"); $g->gg2 = new $g2cls(10); diff --git a/php/test/Ice/proxy/Client.php b/php/test/Ice/proxy/Client.php index 441078b1127..a80838fb44f 100644 --- a/php/test/Ice/proxy/Client.php +++ b/php/test/Ice/proxy/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } @@ -38,7 +39,7 @@ function allTests($communicator) $random = $NS ? constant("Ice\\EndpointSelectionType::Random") : constant("Ice_EndpointSelectionType::Random"); $ordered = $NS ? constant("Ice\\EndpointSelectionType::Ordered") : constant("Ice_EndpointSelectionType::Ordered"); $encodingVersion = $NS ? "Ice\\EncodingVersion" : "Ice_EncodingVersion"; - + $identityToString = $NS ? "Ice\\identityToString" : "Ice_identityToString"; $stringToIdentity = $NS ? "Ice\\stringToIdentity" : "Ice_stringToIdentity"; @@ -490,7 +491,7 @@ function allTests($communicator) { $cl20->ice_ping(); test(false); - } + } catch(Exception $ex) { // Server 2.0 endpoint doesn't support 1.1 version. @@ -685,7 +686,7 @@ function allTests($communicator) $p1 = $communicator->stringToProxy("test -e 1.1:opaque -t 1 -e 1.0 -v CTEyNy4wLjAuMeouAAAQJwAAAA=="); $pstr = $communicator->proxyToString($p1); test($pstr == "test -t -e 1.1:tcp -h 127.0.0.1 -p 12010 -t 10000"); - + // Opaque endpoint encoded with 1.1 encoding. $p2 = $communicator->stringToProxy("test -e 1.1:opaque -e 1.1 -t 1 -v CTEyNy4wLjAuMeouAAAQJwAAAA=="); test($communicator->proxyToString($p2) == "test -t -e 1.1:tcp -h 127.0.0.1 -p 12010 -t 10000"); diff --git a/php/test/Ice/slicing/exceptions/Client.php b/php/test/Ice/slicing/exceptions/Client.php index fc818c09d99..db410f4366a 100644 --- a/php/test/Ice/slicing/exceptions/Client.php +++ b/php/test/Ice/slicing/exceptions/Client.php @@ -16,7 +16,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Ice/slicing/objects/Client.php b/php/test/Ice/slicing/objects/Client.php index 1e2a8913e79..13f7ea4bbd1 100644 --- a/php/test/Ice/slicing/objects/Client.php +++ b/php/test/Ice/slicing/objects/Client.php @@ -17,7 +17,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Slice/keyword/Client.php b/php/test/Slice/keyword/Client.php index 54075d97017..84da5378948 100644 --- a/php/test/Slice/keyword/Client.php +++ b/php/test/Slice/keyword/Client.php @@ -34,7 +34,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Slice/macros/Client.php b/php/test/Slice/macros/Client.php index b38126cb198..a8e16923446 100644 --- a/php/test/Slice/macros/Client.php +++ b/php/test/Slice/macros/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } diff --git a/php/test/Slice/structure/Client.php b/php/test/Slice/structure/Client.php index 1efe1b19817..03cb6476c8b 100644 --- a/php/test/Slice/structure/Client.php +++ b/php/test/Slice/structure/Client.php @@ -25,7 +25,8 @@ function test($b) if(!$b) { $bt = debug_backtrace(); - die("\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"); + echo "\ntest failed in ".$bt[0]["file"]." line ".$bt[0]["line"]."\n"; + exit(1); } } -- cgit v1.2.3 From 0b9cd62bff1b6c72f9e8be6c4f2b496b3fed6aac Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 16 Mar 2016 09:45:41 +0100 Subject: ICE-7020 - php Ice/defaultValue failing --- php/test/Ice/defaultValue/Client.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/php/test/Ice/defaultValue/Client.php b/php/test/Ice/defaultValue/Client.php index 29fa33a2c6c..2fcc596ce0f 100644 --- a/php/test/Ice/defaultValue/Client.php +++ b/php/test/Ice/defaultValue/Client.php @@ -55,7 +55,7 @@ function allTests() test($v->l == 4); test($v->f == 5.1); test($v->d == 6.2); - test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007"); + test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007"); test($v->c1 == $red); test($v->c2 == $green); test($v->c3 == $blue); @@ -105,7 +105,7 @@ function allTests() test($v->l == 4); test($v->f == 5.1); test($v->d == 6.2); - test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007"); + test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007"); test(strlen($v->noDefault) == 0); test($v->zeroI == 0); test($v->zeroL == 0); @@ -125,7 +125,7 @@ function allTests() test($v->l == 4); test($v->f == 5.1); test($v->d == 6.2); - test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007"); + test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007"); test(strlen($v->noDefault) == 0); test($v->c1 == $red); test($v->c2 == $green); @@ -151,7 +151,7 @@ function allTests() test($v->l == 4); test($v->f == 5.1); test($v->d == 6.2); - test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007"); + test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007"); test(strlen($v->noDefault) == 0); test($v->zeroI == 0); test($v->zeroL == 0); @@ -171,7 +171,7 @@ function allTests() test($v->l == 4); test($v->f == 5.1); test($v->d == 6.2); - test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\b? \007 \007"); + test($v->str == "foo \\ \"bar\n \r\n\t\013\f\007\010? \007 \007"); test(strlen($v->noDefault) == 0); test($v->c1 == $red); test($v->c2 == $green); -- cgit v1.2.3 From 473bf30951e4b711ed6829e765f2d330ce8d80db Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Wed, 16 Mar 2016 11:37:46 -0700 Subject: ICE-7023 - Ruby 2.3 compatibility --- CHANGELOG-3.6.md | 4 +++ ruby/src/IceRuby/Config.h | 11 ++++++++ ruby/src/IceRuby/Operation.cpp | 22 ++++++++-------- ruby/src/IceRuby/Proxy.cpp | 8 +++--- ruby/src/IceRuby/Types.cpp | 60 ++++++++++++++++++++++-------------------- ruby/src/IceRuby/Util.cpp | 6 ++--- ruby/src/IceRuby/Util.h | 2 +- 7 files changed, 65 insertions(+), 48 deletions(-) diff --git a/CHANGELOG-3.6.md b/CHANGELOG-3.6.md index fcdf759e738..402c7978e3c 100644 --- a/CHANGELOG-3.6.md +++ b/CHANGELOG-3.6.md @@ -71,6 +71,10 @@ These are the changes since Ice 3.6.1. - Fixed a bug where unmarshaling Ice objects was really slow when using compact type IDs. +## Ruby Changes + +- Added compatibility with Ruby 2.3. + # Changes in Ice 3.6.1 These are the changes since Ice 3.6.0. diff --git a/ruby/src/IceRuby/Config.h b/ruby/src/IceRuby/Config.h index daf7e65423a..f8117b4d554 100644 --- a/ruby/src/IceRuby/Config.h +++ b/ruby/src/IceRuby/Config.h @@ -87,4 +87,15 @@ typedef VALUE(*ICE_RUBY_ENTRY_POINT)(...); # define RFLOAT_VALUE(v) RFLOAT(v)->value #endif +// +// The RARRAY_AREF and RARRAY_ASET macros were added in Ruby 2.1. +// +#ifndef RARRAY_AREF +# define RARRAY_AREF(a, i) (RARRAY_PTR(a)[i]) +#endif + +#ifndef RARRAY_ASET +# define RARRAY_ASET(a, i, v) RARRAY_PTR(a)[i] = v +#endif + #endif diff --git a/ruby/src/IceRuby/Operation.cpp b/ruby/src/IceRuby/Operation.cpp index 2f4d34210ca..53778ec253b 100644 --- a/ruby/src/IceRuby/Operation.cpp +++ b/ruby/src/IceRuby/Operation.cpp @@ -175,7 +175,7 @@ IceRuby::ParamInfo::unmarshaled(VALUE val, VALUE target, void* closure) #else long i = reinterpret_cast(closure); #endif - RARRAY_PTR(target)[i] = val; + RARRAY_ASET(target, i, val); } // @@ -287,7 +287,7 @@ IceRuby::OperationI::OperationI(VALUE name, VALUE mode, VALUE sendMode, VALUE am // for(long i = 0; i < RARRAY_LEN(exceptions); ++i) { - _exceptions.push_back(getException(RARRAY_PTR(exceptions)[i])); + _exceptions.push_back(getException(RARRAY_AREF(exceptions, i))); } } @@ -359,7 +359,7 @@ IceRuby::OperationI::invoke(const Ice::ObjectPrx& proxy, VALUE args, VALUE hctx) } else { - return RARRAY_PTR(results)[0]; + return RARRAY_AREF(results, 0); } } } @@ -387,7 +387,7 @@ IceRuby::OperationI::convertParams(VALUE v, ParamInfoList& params, int posOffset for(long i = 0; i < RARRAY_LEN(v); ++i) { - ParamInfoPtr param = convertParam(RARRAY_PTR(v)[i], i + posOffset); + ParamInfoPtr param = convertParam(RARRAY_AREF(v, i), i + posOffset); params.push_back(param); if(!param->optional && !usesClasses) { @@ -401,9 +401,9 @@ IceRuby::OperationI::convertParam(VALUE v, int pos) { assert(TYPE(v) == T_ARRAY); ParamInfoPtr param = new ParamInfo; - param->type = getType(RARRAY_PTR(v)[0]); - param->optional = static_cast(RTEST(RARRAY_PTR(v)[1])); - param->tag = static_cast(getInteger(RARRAY_PTR(v)[2])); + param->type = getType(RARRAY_AREF(v, 0)); + param->optional = static_cast(RTEST(RARRAY_AREF(v, 1))); + param->tag = static_cast(getInteger(RARRAY_AREF(v, 2))); param->pos = pos; return param; } @@ -442,7 +442,7 @@ IceRuby::OperationI::prepareRequest(const Ice::ObjectPrx& proxy, VALUE args, Ice for(p = _inParams.begin(); p != _inParams.end(); ++p) { ParamInfoPtr info = *p; - volatile VALUE arg = RARRAY_PTR(args)[info->pos]; + volatile VALUE arg = RARRAY_AREF(args, info->pos); if((!info->optional || arg != Unset) && !info->type->validate(arg)) { string opName = fixIdent(_name, IdentNormal); @@ -459,7 +459,7 @@ IceRuby::OperationI::prepareRequest(const Ice::ObjectPrx& proxy, VALUE args, Ice ParamInfoPtr info = *p; if(!info->optional) { - volatile VALUE arg = RARRAY_PTR(args)[info->pos]; + volatile VALUE arg = RARRAY_AREF(args, info->pos); info->type->marshal(arg, os, &objectMap, false); } } @@ -470,7 +470,7 @@ IceRuby::OperationI::prepareRequest(const Ice::ObjectPrx& proxy, VALUE args, Ice for(p = _optionalInParams.begin(); p != _optionalInParams.end(); ++p) { ParamInfoPtr info = *p; - volatile VALUE arg = RARRAY_PTR(args)[info->pos]; + volatile VALUE arg = RARRAY_AREF(args, info->pos); if(arg != Unset && os->writeOptional(info->tag, info->type->optionalFormat())) { info->type->marshal(arg, os, &objectMap, true); @@ -553,7 +553,7 @@ IceRuby::OperationI::unmarshalResults(const vector& bytes, const Ice: } else { - RARRAY_PTR(results)[info->pos] = Unset; + RARRAY_ASET(results, info->pos, Unset); } } diff --git a/ruby/src/IceRuby/Proxy.cpp b/ruby/src/IceRuby/Proxy.cpp index 86da9b3e5c9..0029cad3378 100644 --- a/ruby/src/IceRuby/Proxy.cpp +++ b/ruby/src/IceRuby/Proxy.cpp @@ -188,7 +188,7 @@ IceRuby_ObjectPrx_ice_ids(int argc, VALUE* argv, VALUE self) long i = 0; for(vector::iterator q = ids.begin(); q != ids.end(); ++q, ++i) { - RARRAY_PTR(result)[i] = createString(*q); + RARRAY_ASET(result, i, createString(*q)); } return result; @@ -352,7 +352,7 @@ IceRuby_ObjectPrx_ice_getEndpoints(VALUE self) long i = 0; for(Ice::EndpointSeq::iterator q = seq.begin(); q != seq.end(); ++q, ++i) { - RARRAY_PTR(result)[i] = createEndpoint(*q); + RARRAY_ASET(result, i, createEndpoint(*q)); } return result; } @@ -383,11 +383,11 @@ IceRuby_ObjectPrx_ice_endpoints(VALUE self, VALUE seq) } for(long i = 0; i < RARRAY_LEN(arr); ++i) { - if(!checkEndpoint(RARRAY_PTR(arr)[i])) + if(!checkEndpoint(RARRAY_AREF(arr, i))) { throw RubyException(rb_eTypeError, "array element is not an Ice::Endpoint"); } - Ice::EndpointPtr* e = reinterpret_cast(DATA_PTR(RARRAY_PTR(arr)[i])); + Ice::EndpointPtr* e = reinterpret_cast(DATA_PTR(RARRAY_AREF(arr, i))); assert(e); endpoints.push_back(*e); } diff --git a/ruby/src/IceRuby/Types.cpp b/ruby/src/IceRuby/Types.cpp index 4834320d1e2..53f25058e54 100644 --- a/ruby/src/IceRuby/Types.cpp +++ b/ruby/src/IceRuby/Types.cpp @@ -266,7 +266,8 @@ IceRuby::SlicedDataUtil::setMember(VALUE obj, const Ice::SlicedDataPtr& slicedDa { volatile VALUE slice = callRuby(rb_class_new_instance, 0, static_cast(0), _sliceInfoType); - RARRAY_PTR(slices)[i++] = slice; + RARRAY_ASET(slices, i, slice); + i++; // // typeId @@ -303,7 +304,8 @@ IceRuby::SlicedDataUtil::setMember(VALUE obj, const Ice::SlicedDataPtr& slicedDa assert(r); VALUE o = r->getObject(); assert(o != Qnil); // Should be non-nil. - RARRAY_PTR(objects)[j++] = o; + RARRAY_ASET(objects, j, o); + j++; } // @@ -346,7 +348,7 @@ IceRuby::SlicedDataUtil::getMember(VALUE obj, ObjectMap* objectMap) long sz = RARRAY_LEN(sl); for(long i = 0; i < sz; ++i) { - volatile VALUE s = RARRAY_PTR(sl)[i]; + volatile VALUE s = RARRAY_AREF(sl, i); Ice::SliceInfoPtr info = new Ice::SliceInfo; @@ -372,7 +374,7 @@ IceRuby::SlicedDataUtil::getMember(VALUE obj, ObjectMap* objectMap) long osz = RARRAY_LEN(objects); for(long j = 0; j < osz; ++j) { - VALUE o = RARRAY_PTR(objects)[j]; + VALUE o = RARRAY_AREF(objects, j); Ice::ObjectPtr writer; @@ -884,21 +886,21 @@ convertDataMembers(VALUE members, DataMemberList& reqMembers, DataMemberList& op assert(!NIL_P(arr)); for(long i = 0; i < RARRAY_LEN(arr); ++i) { - volatile VALUE m = callRuby(rb_check_array_type, RARRAY_PTR(arr)[i]); + volatile VALUE m = callRuby(rb_check_array_type, RARRAY_AREF(arr, i)); assert(!NIL_P(m)); assert(RARRAY_LEN(m) == allowOptional ? 4 : 2); DataMemberPtr member = new DataMember; - member->name = getString(RARRAY_PTR(m)[0]); - member->type = getType(RARRAY_PTR(m)[1]); + member->name = getString(RARRAY_AREF(m, 0)); + member->type = getType(RARRAY_AREF(m, 1)); string s = "@" + member->name; member->rubyID = rb_intern(s.c_str()); if(allowOptional) { - member->optional = RTEST(RARRAY_PTR(m)[2]); - member->tag = static_cast(getInteger(RARRAY_PTR(m)[3])); + member->optional = RTEST(RARRAY_AREF(m, 2)); + member->tag = static_cast(getInteger(RARRAY_AREF(m, 3))); } else { @@ -1246,12 +1248,12 @@ IceRuby::SequenceInfo::marshal(VALUE p, const Ice::OutputStreamPtr& os, ObjectMa os->writeSize(static_cast(sz)); for(long i = 0; i < sz; ++i) { - if(!elementType->validate(RARRAY_PTR(arr)[i])) + if(!elementType->validate(RARRAY_AREF(arr, i))) { throw RubyException(rb_eTypeError, "invalid value for element %ld of `%s'", i, const_cast(id.c_str())); } - elementType->marshal(RARRAY_PTR(arr)[i], os, objectMap, false); + elementType->marshal(RARRAY_AREF(arr, i), os, objectMap, false); } } @@ -1304,7 +1306,7 @@ IceRuby::SequenceInfo::unmarshaled(VALUE val, VALUE target, void* closure) #else long i = reinterpret_cast(closure); #endif - RARRAY_PTR(target)[i] = val; + RARRAY_ASET(target, i, val); } void @@ -1344,7 +1346,7 @@ IceRuby::SequenceInfo::print(VALUE value, IceUtilInternal::Output& out, PrintObj for(long i = 0; i < sz; ++i) { out << nl << '[' << i << "] = "; - elementType->print(RARRAY_PTR(arr)[i], out, history); + elementType->print(RARRAY_AREF(arr, i), out, history); } out.eb(); } @@ -1401,7 +1403,7 @@ IceRuby::SequenceInfo::marshalPrimitiveSequence(const PrimitiveInfoPtr& pi, VALU Ice::BoolSeq seq(sz); for(long i = 0; i < sz; ++i) { - seq[i] = RTEST(RARRAY_PTR(arr)[i]); + seq[i] = RTEST(RARRAY_AREF(arr, i)); } os->write(seq); break; @@ -1427,7 +1429,7 @@ IceRuby::SequenceInfo::marshalPrimitiveSequence(const PrimitiveInfoPtr& pi, VALU Ice::ByteSeq seq(sz); for(long i = 0; i < sz; ++i) { - long val = getInteger(RARRAY_PTR(arr)[i]); + long val = getInteger(RARRAY_AREF(arr, i)); if(val < 0 || val > 255) { throw RubyException(rb_eTypeError, "invalid value for element %ld of sequence", i); @@ -1444,7 +1446,7 @@ IceRuby::SequenceInfo::marshalPrimitiveSequence(const PrimitiveInfoPtr& pi, VALU Ice::ShortSeq seq(sz); for(long i = 0; i < sz; ++i) { - long val = getInteger(RARRAY_PTR(arr)[i]); + long val = getInteger(RARRAY_AREF(arr, i)); if(val < SHRT_MIN || val > SHRT_MAX) { throw RubyException(rb_eTypeError, "invalid value for element %ld of sequence", i); @@ -1460,7 +1462,7 @@ IceRuby::SequenceInfo::marshalPrimitiveSequence(const PrimitiveInfoPtr& pi, VALU Ice::IntSeq seq(sz); for(long i = 0; i < sz; ++i) { - long val = getInteger(RARRAY_PTR(arr)[i]); + long val = getInteger(RARRAY_AREF(arr, i)); if(val < INT_MIN || val > INT_MAX) { throw RubyException(rb_eTypeError, "invalid value for element %ld of sequence", i); @@ -1476,7 +1478,7 @@ IceRuby::SequenceInfo::marshalPrimitiveSequence(const PrimitiveInfoPtr& pi, VALU Ice::LongSeq seq(sz); for(long i = 0; i < sz; ++i) { - seq[i] = getLong(RARRAY_PTR(arr)[i]); + seq[i] = getLong(RARRAY_AREF(arr, i)); } os->write(&seq[0], &seq[0] + seq.size()); break; @@ -1487,7 +1489,7 @@ IceRuby::SequenceInfo::marshalPrimitiveSequence(const PrimitiveInfoPtr& pi, VALU Ice::FloatSeq seq(sz); for(long i = 0; i < sz; ++i) { - volatile VALUE v = callRuby(rb_Float, RARRAY_PTR(arr)[i]); + volatile VALUE v = callRuby(rb_Float, RARRAY_AREF(arr, i)); if(NIL_P(v)) { throw RubyException(rb_eTypeError, "unable to convert array element %ld to a float", i); @@ -1504,7 +1506,7 @@ IceRuby::SequenceInfo::marshalPrimitiveSequence(const PrimitiveInfoPtr& pi, VALU Ice::DoubleSeq seq(sz); for(long i = 0; i < sz; ++i) { - volatile VALUE v = callRuby(rb_Float, RARRAY_PTR(arr)[i]); + volatile VALUE v = callRuby(rb_Float, RARRAY_AREF(arr, i)); if(NIL_P(v)) { throw RubyException(rb_eTypeError, "unable to convert array element %ld to a double", i); @@ -1521,7 +1523,7 @@ IceRuby::SequenceInfo::marshalPrimitiveSequence(const PrimitiveInfoPtr& pi, VALU Ice::StringSeq seq(sz); for(long i = 0; i < sz; ++i) { - seq[i] = getString(RARRAY_PTR(arr)[i]); + seq[i] = getString(RARRAY_AREF(arr, i)); } os->write(seq, true); break; @@ -1549,7 +1551,7 @@ IceRuby::SequenceInfo::unmarshalPrimitiveSequence(const PrimitiveInfoPtr& pi, co { for(long i = 0; i < sz; ++i) { - RARRAY_PTR(result)[i] = p.first[i] ? Qtrue : Qfalse; + RARRAY_ASET(result, i, p.first[i] ? Qtrue : Qfalse); } } break; @@ -1573,7 +1575,7 @@ IceRuby::SequenceInfo::unmarshalPrimitiveSequence(const PrimitiveInfoPtr& pi, co { for(long i = 0; i < sz; ++i) { - RARRAY_PTR(result)[i] = INT2FIX(p.first[i]); + RARRAY_ASET(result, i, INT2FIX(p.first[i])); } } break; @@ -1590,7 +1592,7 @@ IceRuby::SequenceInfo::unmarshalPrimitiveSequence(const PrimitiveInfoPtr& pi, co { for(long i = 0; i < sz; ++i) { - RARRAY_PTR(result)[i] = INT2FIX(p.first[i]); + RARRAY_ASET(result, i, INT2FIX(p.first[i])); } } break; @@ -1607,7 +1609,7 @@ IceRuby::SequenceInfo::unmarshalPrimitiveSequence(const PrimitiveInfoPtr& pi, co { for(long i = 0; i < sz; ++i) { - RARRAY_PTR(result)[i] = callRuby(rb_ll2inum, p.first[i]); + RARRAY_ASET(result, i, callRuby(rb_ll2inum, p.first[i])); } } break; @@ -1624,7 +1626,7 @@ IceRuby::SequenceInfo::unmarshalPrimitiveSequence(const PrimitiveInfoPtr& pi, co { for(long i = 0; i < sz; ++i) { - RARRAY_PTR(result)[i] = callRuby(rb_float_new, p.first[i]); + RARRAY_ASET(result, i, callRuby(rb_float_new, p.first[i])); } } break; @@ -1641,7 +1643,7 @@ IceRuby::SequenceInfo::unmarshalPrimitiveSequence(const PrimitiveInfoPtr& pi, co { for(long i = 0; i < sz; ++i) { - RARRAY_PTR(result)[i] = callRuby(rb_float_new, p.first[i]); + RARRAY_ASET(result, i, callRuby(rb_float_new, p.first[i])); } } break; @@ -1657,7 +1659,7 @@ IceRuby::SequenceInfo::unmarshalPrimitiveSequence(const PrimitiveInfoPtr& pi, co { for(long i = 0; i < sz; ++i) { - RARRAY_PTR(result)[i] = createString(seq[i]); + RARRAY_ASET(result, i, createString(seq[i])); } } break; @@ -1985,7 +1987,7 @@ IceRuby::ClassInfo::define(VALUE t, VALUE compact, VALUE abstr, VALUE pres, VALU assert(!NIL_P(arr)); for(n = 0; n < RARRAY_LEN(arr); ++n) { - ClassInfoPtr iface = ClassInfoPtr::dynamicCast(getType(RARRAY_PTR(arr)[n])); + ClassInfoPtr iface = ClassInfoPtr::dynamicCast(getType(RARRAY_AREF(arr, n))); assert(iface); const_cast(interfaces).push_back(iface); } diff --git a/ruby/src/IceRuby/Util.cpp b/ruby/src/IceRuby/Util.cpp index 6b9ba1314d7..df53f265563 100644 --- a/ruby/src/IceRuby/Util.cpp +++ b/ruby/src/IceRuby/Util.cpp @@ -378,8 +378,8 @@ IceRuby::arrayToStringSeq(VALUE val, vector& seq) } for(long i = 0; i < RARRAY_LEN(arr); ++i) { - string s = getString(RARRAY_PTR(arr)[i]); - seq.push_back(getString(RARRAY_PTR(arr)[i])); + string s = getString(RARRAY_AREF(arr, i)); + seq.push_back(getString(RARRAY_AREF(arr, i))); } return true; } @@ -393,7 +393,7 @@ IceRuby::stringSeqToArray(const vector& seq) { for(vector::const_iterator p = seq.begin(); p != seq.end(); ++p, ++i) { - RARRAY_PTR(result)[i] = createString(*p); + RARRAY_ASET(result, i, createString(*p)); } } return result; diff --git a/ruby/src/IceRuby/Util.h b/ruby/src/IceRuby/Util.h index 40054f909d5..355044bca9b 100644 --- a/ruby/src/IceRuby/Util.h +++ b/ruby/src/IceRuby/Util.h @@ -445,7 +445,7 @@ VALUE createArrayHelper(long); // VALUE arr = createArray(size); // for(long i = 0; i < size; ++i) // { -// RARRAY_PTR(arr)[i] = ...; +// RARRAY_ASET(arr, i, val); // } // template -- cgit v1.2.3 From caf33525fa4ad992b8030b653ac3fa899e039c81 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Wed, 16 Mar 2016 22:02:43 +0100 Subject: Fixed ICE-7024 - IceSSL/configuration test failure on SLES11 --- cpp/test/IceSSL/configuration/AllTests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpp/test/IceSSL/configuration/AllTests.cpp b/cpp/test/IceSSL/configuration/AllTests.cpp index fd16fe823e7..c1baaf93db2 100644 --- a/cpp/test/IceSSL/configuration/AllTests.cpp +++ b/cpp/test/IceSSL/configuration/AllTests.cpp @@ -1349,8 +1349,14 @@ allTests(const CommunicatorPtr& communicator, const string& testDir, bool p12, b } catch(const LocalException& ex) { + // + // OpenSSL < 1.0 doesn't support tls 1.1 so it will also fail, we ignore in this + // case. + // +#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10000000L cerr << ex << endl; test(false); +#endif } fact->destroyServer(server); comm->destroy(); -- cgit v1.2.3 From 9019cf70bc3a3beff224786efafb5142482a3ac3 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Wed, 16 Mar 2016 15:52:00 -0700 Subject: updating changelog TOC --- CHANGELOG-3.6.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG-3.6.md b/CHANGELOG-3.6.md index 402c7978e3c..e15a59fe4a7 100644 --- a/CHANGELOG-3.6.md +++ b/CHANGELOG-3.6.md @@ -8,23 +8,27 @@ We recommend that you use the release notes as a guide for migrating your applications to this release, and the manual for complete details on a particular aspect of Ice. -- [Changes in Ice 3.6.1](#changes-in-ice-361) +- [Changes in Ice 3.6.2](#changes-in-ice-362) + - [General Changes](#general-changes) - [C++ Changes](#c-changes) + - [C# Changes](#c-changes-1) + - [Java Changes](#java-changes) + - [Ruby Changes](#ruby-changes) - [Changes in Ice 3.6.1](#changes-in-ice-361) - - [General Changes](#general-changes) - - [C++ Changes](#c-changes-1) + - [General Changes](#general-changes-1) + - [C++ Changes](#c-changes-2) - [JavaScript Changes](#javascript-changes) - [PHP Changes](#php-changes) - [Changes in Ice 3.6.0](#changes-in-ice-360) - - [General Changes](#general-changes-1) - - [C++ Changes](#c-changes-2) - - [C# Changes](#c#-changes) - - [Java Changes](#java-changes) + - [General Changes](#general-changes-2) + - [C++ Changes](#c-changes-3) + - [C# Changes](#c-changes-4) + - [Java Changes](#java-changes-1) - [JavaScript Changes](#javascript-changes-1) - [Objective-C Changes](#objective-c-changes) - [PHP Changes](#php-changes-1) - [Python Changes](#python-changes) - - [Ruby Changes](#ruby-changes) + - [Ruby Changes](#ruby-changes-1) # Changes in Ice 3.6.2 -- cgit v1.2.3 From b606189a8d769e705141706878d4035da8520cdb Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Thu, 17 Mar 2016 08:57:55 +0100 Subject: Fix for ICE-7027 - bumped a bit the timeouts to prevent sporadic failures --- js/test/Ice/promise/Client.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/js/test/Ice/promise/Client.js b/js/test/Ice/promise/Client.js index dc25f3e7eb4..f64c1a454bf 100644 --- a/js/test/Ice/promise/Client.js +++ b/js/test/Ice/promise/Client.js @@ -826,12 +826,12 @@ var p = new Promise(); var start = Date.now(); - p = p.succeed(10).delay(500).then( function(i) { test(i == 10); - test(Date.now() - start >= 450 && Date.now() - start <= 650); + test(Date.now() - start >= 450); + test(Date.now() - start <= 900); } ).then( function() @@ -841,7 +841,8 @@ function(i) { test(i == 10); - test(Date.now() - start >= 450 && Date.now() - start <= 650); + test(Date.now() - start >= 450); + test(Date.now() - start <= 900); } ) } @@ -858,7 +859,8 @@ function(ex) { test(ex == "failed"); - test(Date.now() - start >= 450 && Date.now() - start <= 650); + test(Date.now() - start >= 450); + test(Date.now() - start <= 900); out.writeLine("ok"); promise.succeed(); } -- cgit v1.2.3 From b6f1ae434f6824f7a6493cb159aa41b2fdcfcbef Mon Sep 17 00:00:00 2001 From: Joe George Date: Thu, 17 Mar 2016 11:39:31 -0400 Subject: Update Ice Builder for Gradle version to 1.2.1 --- java/gradle/ice.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/gradle/ice.gradle b/java/gradle/ice.gradle index 599e0ab38a4..4abaec16875 100644 --- a/java/gradle/ice.gradle +++ b/java/gradle/ice.gradle @@ -20,7 +20,7 @@ buildscript { } } dependencies { - classpath group: 'com.zeroc.gradle.ice-builder', name: 'slice', version: '1.2.0' + classpath group: 'com.zeroc.gradle.ice-builder', name: 'slice', version: '1.2.1' } } -- cgit v1.2.3