#! /bin/bash

set -e
set -o pipefail

script='probe kernel.function("do_filp_open") { if ($dfd==50) $dfd=49 next }'
s1=`stap -p3 -g    -e "$script" | sum`
s2=`stap -p3 -g -u -e "$script" | sum`

test x"$s1" == x"$s2"
