diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2023-03-28 13:40:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 13:40:43 -0400 |
commit | 35fd8583efce33eaec4d88a26d96a5efb1690911 (patch) | |
tree | d02ba55a6748ff8eb165fa7bed05860ed799d868 /cli/tests/integration/linux_tests.rs | |
parent | e789f813f9eec188e270037648e7b94e05dc1787 (diff) |
refactor: move shared library tests to their own file (#18479)
Diffstat (limited to 'cli/tests/integration/linux_tests.rs')
-rw-r--r-- | cli/tests/integration/linux_tests.rs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/cli/tests/integration/linux_tests.rs b/cli/tests/integration/linux_tests.rs deleted file mode 100644 index c12454e23..000000000 --- a/cli/tests/integration/linux_tests.rs +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. - -#[cfg(target_os = "linux")] -#[test] -// https://github.com/denoland/deno/issues/18266 -fn linux_shared_libraries() { - use test_util as util; - - const EXPECTED: [&str; 7] = [ - "linux-vdso.so.1", - "libdl.so.2", - "libgcc_s.so.1", - "libpthread.so.0", - "libm.so.6", - "libc.so.6", - "/lib64/ld-linux-x86-64.so.2", - ]; - - let ldd = std::process::Command::new("ldd") - .arg("-L") - .arg(util::deno_exe_path()) - .output() - .expect("Failed to execute ldd"); - - let output = std::str::from_utf8(&ldd.stdout).unwrap(); - // Ensure that the output contains only the expected shared libraries. - for line in output.lines().skip(1) { - let path = line.split_whitespace().next().unwrap(); - assert!( - EXPECTED.contains(&path), - "Unexpected shared library: {}", - path - ); - } -} |