Commit Graph

9 Commits

Author SHA1 Message Date
pgoyette
aec3683782 When deadbeef is treated as a 32-bit signed integer, it actually has a
negative value.  So, if the value gets written into a sysctl variable,
and then is read back, the twos-complement value is displayed.

So, when checking for the value having been written, make sure we check
for the correct value!
2016-06-17 03:55:35 +00:00
palle
65aa7f14df Added test of -d option to sysctl 2014-05-16 18:50:28 +00:00
jruoho
a74ccce819 Test that sysctl(8) does not segfault, as reported by pgoyette@ on current
users.
2012-04-10 02:39:33 +00:00
jruoho
543143cf18 Move more PR references from comments to ATF's "descr". 2012-03-18 09:46:50 +00:00
jruoho
6c201d9091 Remove xfail, as PR kern/44946 was fixed. 2012-03-12 08:14:02 +00:00
njoly
de774efe6e Remove shebang lines from test-script sources; avoids duplicate with
the build process which adds one too.
2011-05-11 22:08:12 +00:00
jruoho
3005f452fe Do also a small functional verification that user did not succeed in writing
garbage values, even if sysctl(8) reported a failure.
2011-05-11 07:07:41 +00:00
jruoho
949a3d9b76 Add one missing cleanup routine declaration. 2011-05-09 17:55:37 +00:00
jruoho
f33b8e3d59 Add a test case for PR kern/44946. This tests that common first level sysctl
nodes (ddb, hw, machdep, etc.) are not writable by a normal user.
2011-05-09 17:53:54 +00:00