Commit efc4154b authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Add '!=' operator to query language

parent 18f5b8b6
......@@ -36,3 +36,10 @@ logexpect l1 -d 1 -g vxid -q "RespStatus == 200" {
expect * = ReqEnd
expect * = End
} -run
# Test '!=' operator
logexpect l1 -d 1 -g vxid -q "RespStatus != 503" {
expect * * Begin req
expect * = ReqEnd
expect * = End
} -run
......@@ -103,6 +103,15 @@ vslq_test_rec(const struct vex *vex, const struct VSLC_ptr *rec)
default:
INCOMPL();
}
case T_NEQ: /* != */
switch (val->type) {
case VEX_INT:
if (val->val_int != recint)
return (1);
return (0);
default:
INCOMPL();
}
case T_SEQ: /* eq */
assert(val->type == VEX_STRING);
if (reclen == val->val_stringlen + 1 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment