File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2651,13 +2651,11 @@ extern \"rust-intrinsic\" fn five() {
2651
2651
" five" ))))
2652
2652
2653
2653
(ert-deftest rust-test-project-located ()
2654
- (lexical-let* ((this-dir default-directory )
2655
- ( test-dir (expand-file-name " test-project" this-dir ))
2654
+ (skip-unless ( executable-find " cargo " ) )
2655
+ ( lexical-let* (( test-dir (expand-file-name " test-project" default-directory ))
2656
2656
(manifest-file (expand-file-name " Cargo.toml" test-dir)))
2657
- (find-file (expand-file-name " test-project/foo.rs" ))
2658
- (unwind-protect
2659
- (should (equal (expand-file-name (rust-buffer-project)) manifest-file))
2660
- (kill-buffer ))))
2657
+ (let ((default-directory test-dir))
2658
+ (should (equal (expand-file-name (rust-buffer-project)) manifest-file)))))
2661
2659
2662
2660
; ; If electric-pair-mode is available, load it and run the tests that use it. If not,
2663
2661
; ; no error--the tests will be skipped.
You can’t perform that action at this time.
0 commit comments