File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,23 +289,6 @@ fn main() -> i32 {
289289 let calls = count_occurrences " __ks_sysctl_hostname_read(__ks_sb_hostname)" c in
290290 Alcotest. (check int ) " read called once per load" 1 calls
291291
292- let read_file p =
293- let ic = open_in p in
294- let s = really_input_string ic (in_channel_length ic) in
295- close_in ic; s
296-
297- let test_e2e_compiles_example () =
298- let example = " examples/sysctl_demo.ks" in
299- if not (Sys. file_exists example) then Alcotest. skip ()
300- else
301- let src = read_file example in
302- let c = user_c_of src in
303- Alcotest. (check bool ) " ostype path" true (mentions " /proc/sys/kernel/ostype" c);
304- Alcotest. (check bool ) " ostype read" true (mentions " __ks_sysctl_ostype_read" c);
305- Alcotest. (check bool ) " somaxconn path" true (mentions " /proc/sys/net/core/somaxconn" c);
306- Alcotest. (check bool ) " somaxconn read" true (mentions " __ks_sysctl_somaxconn_read" c);
307- Alcotest. (check bool ) " somaxconn write" true (mentions " __ks_sysctl_somaxconn_write" c)
308-
309292let () =
310293 Alcotest. run " sysctl" [
311294 " parse" , [
@@ -335,7 +318,4 @@ let () =
335318 Alcotest. test_case " userspace rewrites load/store" `Quick test_userspace_rewrites_load_store;
336319 Alcotest. test_case " str sysctl load/store" `Quick test_str_sysctl_load_store;
337320 ];
338- " e2e" , [
339- Alcotest. test_case " example file compiles" `Quick test_e2e_compiles_example;
340- ];
341321 ]
You can’t perform that action at this time.
0 commit comments