Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319803
b: refs/heads/master
c: 8fddbe9
h: refs/heads/master
i:
  319801: 77deb8e
  319799: 6e8bb33
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jul 30, 2012
1 parent 9818612 commit a48836c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b1d367dbbeb6646f04a8865ecc2bc454f7dd88f
refs/heads/master: 8fddbe9bbfe5771a9d9e5d0c6f5bae3213c20645
6 changes: 5 additions & 1 deletion trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,10 @@ sub process_compare {
return $lval eq $rval;
} elsif ($cmp eq "!=") {
return $lval ne $rval;
} elsif ($cmp eq "=~") {
return $lval =~ m/$rval/;
} elsif ($cmp eq "!~") {
return $lval !~ m/$rval/;
}

my $statement = "$lval $cmp $rval";
Expand Down Expand Up @@ -678,7 +682,7 @@ sub process_expression {
}
}

if ($val =~ /(.*)(==|\!=|>=|<=|>|<)(.*)/) {
if ($val =~ /(.*)(==|\!=|>=|<=|>|<|=~|\!~)(.*)/) {
my $ret = process_compare($1, $2, $3);
if ($ret < 0) {
die "$name: $.: Unable to process comparison\n";
Expand Down

0 comments on commit a48836c

Please sign in to comment.