Fix: flt.utils.muxer: don't clear an empty `GPtrArray`
[babeltrace.git] / tests / plugins / flt.lttng-utils.debug-info / test_lttng_utils_debug_info.py
index f4e6e2e787df2d5bca49c6cd1967a5243267fb28..a79ca479273e567807af6d899f76c0ebd87b127b 100644 (file)
@@ -1,3 +1,21 @@
+#
+# Copyright (C) 2019 EfficiOS Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; only version 2
+# of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+
 import unittest
 import os.path
 import bt2
@@ -11,11 +29,10 @@ class LttngUtilsDebugInfoTestCase(unittest.TestCase):
         trace_path = os.path.join(debug_info_data_path, 'trace')
         target_prefix = os.path.join(debug_info_data_path, '..', '..')
         src = bt2.ComponentSpec('ctf', 'fs', trace_path)
-        flt = bt2.ComponentSpec('lttng-utils', 'debug-info', {
-            'target-prefix': target_prefix,
-        })
-        it = bt2.TraceCollectionNotificationIterator(src, flt,
-                                                     [bt2.EventNotification])
+        flt = bt2.ComponentSpec(
+            'lttng-utils', 'debug-info', {'target-prefix': target_prefix}
+        )
+        it = bt2.TraceCollectionNotificationIterator(src, flt, [bt2.EventNotification])
         notifs = list(it)
         debug_info = notifs[2].event['debug_info']
         self.assertEqual(debug_info['bin'], 'libhello_so+0x14d4')
This page took 0.02478 seconds and 4 git commands to generate.