diff options
author | 2020-08-27 20:50:16 +0000 | |
---|---|---|
committer | 2020-08-27 20:50:16 +0000 | |
commit | b0e99edab15d059859b4d987c22fb6e500529476 (patch) | |
tree | 59aec7c84b9b073efc7a13ad66b9261592289d26 /rust/rust_test.go | |
parent | 03333d0e2f478aba21c3077dfdb69bd0593eaf3c (diff) | |
parent | 2093af23c06429f5dd22dbae5d47ef800a9fb379 (diff) |
Merge "[rust] Pass cc dependencies as linker flags."
Diffstat (limited to 'rust/rust_test.go')
-rw-r--r-- | rust/rust_test.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/rust/rust_test.go b/rust/rust_test.go index 04de48b19..f1a08a805 100644 --- a/rust/rust_test.go +++ b/rust/rust_test.go @@ -132,25 +132,6 @@ func testRustError(t *testing.T, pattern string, bp string) { t.Fatalf("missing expected error %q (0 errors are returned)", pattern) } -// Test that we can extract the lib name from a lib path. -func TestLibNameFromFilePath(t *testing.T) { - libBarPath := android.PathForTesting("out/soong/.intermediates/external/libbar/libbar/linux_glibc_x86_64_shared/libbar.so.so") - libLibPath := android.PathForTesting("out/soong/.intermediates/external/libbar/libbar/linux_glibc_x86_64_shared/liblib.dylib.so") - - libBarName := libNameFromFilePath(libBarPath) - libLibName := libNameFromFilePath(libLibPath) - - expectedResult := "bar.so" - if libBarName != expectedResult { - t.Errorf("libNameFromFilePath returned the wrong name; expected '%#v', got '%#v'", expectedResult, libBarName) - } - - expectedResult = "lib.dylib" - if libLibName != expectedResult { - t.Errorf("libNameFromFilePath returned the wrong name; expected '%#v', got '%#v'", expectedResult, libLibPath) - } -} - // Test that we can extract the link path from a lib path. func TestLinkPathFromFilePath(t *testing.T) { barPath := android.PathForTesting("out/soong/.intermediates/external/libbar/libbar/linux_glibc_x86_64_shared/libbar.so") |