avoid crash when nsc is not present
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu Oct 01 13:52:25 2009 +0200 (4 months ago)
changeset 53458055fc27a841
parent 5344 dfc1815a6d3e
child 5346 ab5b709e8af6
avoid crash when nsc is not present
src/test/ns3tcp/wscript
     1.1 --- a/src/test/ns3tcp/wscript	Thu Oct 01 13:41:21 2009 +0200
     1.2 +++ b/src/test/ns3tcp/wscript	Thu Oct 01 13:52:25 2009 +0200
     1.3 @@ -5,12 +5,13 @@
     1.4  
     1.5  def build(bld):
     1.6      ns3tcp = bld.create_ns3_module('ns3tcp')
     1.7 -    ns3tcp.source = [
     1.8 -        'ns3tcp-interop-test-suite.cc',
     1.9 -        'ns3tcp-cwnd-test-suite.cc',
    1.10 -        ]
    1.11      headers = bld.new_task_gen('ns3header')
    1.12      headers.module = 'ns3tcp'
    1.13      headers.source = [
    1.14          'ns3tcp.h',
    1.15          ]
    1.16 +    if bld.env['NSC_ENABLED']:
    1.17 +        ns3tcp.source = [
    1.18 +            'ns3tcp-interop-test-suite.cc',
    1.19 +            'ns3tcp-cwnd-test-suite.cc'
    1.20 +            ]