]> sourceware.org Git - systemtap.git/commitdiff
Check that unset CONFIG options compare equal the empty string and/or zero.
authorMark Wielaard <mjw@redhat.com>
Fri, 16 Dec 2011 18:14:40 +0000 (19:14 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 16 Dec 2011 18:16:00 +0000 (19:16 +0100)
testsuite/semok/config_number.stp

index b384c3e53437e92f3a475a5cb65e1a198db2c30a..ba3bde7fb18b1597efd76fe6e9b210cf84576a31 100755 (executable)
@@ -1,14 +1,15 @@
 #! stap -p2
 
 # check that number comparisons work in CONFIG checks
+# Note that unset CONFIG options compare equal the empty string and/or zero
 probe
   %( CONFIG_NR_CPUS == 13 %?
     noprobe
   %:
-    %( CONFIG_NR_CPUS < 1 %?
+    %( CONFIG_NR_CPUS != "" && CONFIG_NR_CPUS < 1 %?
       nonoprobe
     %:
-      %( CONFIG_NR_CPUS >= 0 %?
+      %( CONFIG_NR_CPUS >= 0 && CONFIG_NO_SUCH_FOOBAR_CONFIG_OPTION == 0 %?
         begin
       %:
         nononoprobe
This page took 0.029336 seconds and 5 git commands to generate.