]> sourceware.org Git - systemtap.git/commitdiff
testsuite/stap_merge.tcl: update for magic word in transport stream
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 14 Aug 2023 18:13:38 +0000 (14:13 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 14 Aug 2023 18:13:38 +0000 (14:13 -0400)
This fixes a small regression in the testsuite.

testsuite/systemtap.printf/stap_merge.tcl

index 0c7d7b694709057f87488376467d59846023fe1b..591e9b4005642c6227823e7c91c424c48b2a6d84 100755 (executable)
@@ -15,7 +15,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
-# Copyright (C) Red Hat Inc, 2007
+# Copyright (C) Red Hat Inc, 2007-2023
 #
 #
 
@@ -51,6 +51,8 @@ foreach file $files {
        exit 1
     }
     fconfigure $fd($n) -translation binary
+    # read & ignore magic
+    read $fd($n) 4
     if {![binary scan [read $fd($n) 4] $int_format timestamp($n)]} {
        continue
     }
@@ -90,6 +92,9 @@ while {1} {
     set data [read $fd($mincpu) $len]
     puts -nonewline $outfile $data
 
+    # read & ignore magic
+    read $fd($mincpu) 4
+    
     set data [read $fd($mincpu) 4]
     if {$data == ""} {
        unset fd($mincpu)
This page took 0.028325 seconds and 5 git commands to generate.