]> granicus.if.org Git - strace/commitdiff
tests: handle the case when all 64 process capability bits are set
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 14 Jan 2015 10:36:57 +0000 (10:36 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 14 Jan 2015 10:38:42 +0000 (10:38 +0000)
* tests/caps.awk: Handle the case when all bits of 64-bit capability
word are set.

tests/caps.awk

index 3db69c53f592b63f52e3b00ad8ad71bae7077acf..70f314730018c33f6e2e915d863e3c672aa00a81 100644 (file)
@@ -1,7 +1,7 @@
 BEGIN {
   fail = 0
   lines = 3
-  cap = "(0|CAP_[A-Z_]+(\\|CAP_[A-Z_]+)*)"
+  cap = "(0|CAP_[A-Z_]+(\\|CAP_[A-Z_]+)*|CAP_[A-Z_]+(\\|CAP_[A-Z_]+){37}\\|0xffffffc0)"
   capget = "^capget\\(\\{_LINUX_CAPABILITY_VERSION_3, 0\\}, \\{" cap ", " cap ", " cap "\\}\\) = 0$"
 }