]> sourceware.org Git - systemtap.git/commitdiff
pr23476 fixup for 4.1 :: remove not-yet-supported tests
authorSerhei Makarov <smakarov@redhat.com>
Thu, 2 May 2019 21:37:51 +0000 (17:37 -0400)
committerSerhei Makarov <smakarov@redhat.com>
Thu, 2 May 2019 21:37:51 +0000 (17:37 -0400)
testsuite/systemtap.bpf/bpf_tests/stat2.stp [deleted file]
testsuite/systemtap.bpf/bpf_tests/stat3.stp [deleted file]

diff --git a/testsuite/systemtap.bpf/bpf_tests/stat2.stp b/testsuite/systemtap.bpf/bpf_tests/stat2.stp
deleted file mode 100644 (file)
index cccb374..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// PR23476 :: stat arrays and foreach
-
-global count
-global a
-
-probe begin {
-  println("BEGIN")
-  count = 1
-}
-
-probe kernel.function("vfs_read") {
-  a[count] <<< 2*count
-  if (count++ > 10) exit()
-}
-
-probe end {
-  fail = 0
-  foreach (k+ in a) {
-    val = @sum(a[k])
-    printf("%d --> %d, ", k, val)
-    if (val != 2 * k) fail = 1
-  }
-  printf("\n")
-  if (fail)
-    println("END FAIL")
-  else
-    println("END PASS")
-}
diff --git a/testsuite/systemtap.bpf/bpf_tests/stat3.stp b/testsuite/systemtap.bpf/bpf_tests/stat3.stp
deleted file mode 100644 (file)
index 9a92313..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-// PR23476 :: array-in and delete
-
-global count
-global a
-
-probe begin {
-  println("BEGIN")
-  count = 1
-}
-
-probe kernel.function("vfs_read") {
-  a[count] <<< 2*count
-  if (count % 2 == 0) delete a[count/2]
-  if (count++ > 10) exit()
-}
-
-probe end {
-  fail = 0
-  foreach (k+ in a) {
-    val = @sum(a[k])
-    printf("%d --> %d, ", k, val)
-    if (val != 2 * k) fail = 1
-  }
-  if (2 in a) fail = 1 // deleted earlier
-  if (!(10 in a)) fail = 1 // not deleted
-  printf("\n")
-  if (fail)
-    println("END FAIL")
-  else
-    println("END PASS")
-}
This page took 0.029396 seconds and 5 git commands to generate.