diff options
| author | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
| commit | f0f8d7b82492e741950c363a03b886965c91b1b0 (patch) | |
| tree | 19b716830b1ebabc0d7d75949c4e6800c0f104ad /test/src | |
| parent | 9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff) | |
| parent | c818c29771d3cb51875643b2f6c894073e429dd2 (diff) | |
| download | emacs-feature/native-comp-macos-fixes.tar.gz emacs-feature/native-comp-macos-fixes.zip | |
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/comp-tests.el | 3 | ||||
| -rw-r--r-- | test/src/fns-tests.el | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index 092504565a6..33b307b1c6e 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -54,7 +54,8 @@ Check that the resulting binaries do not differ." | |||
| 54 | (comp-debug 0)) | 54 | (comp-debug 0)) |
| 55 | (copy-file comp-src comp1-src t) | 55 | (copy-file comp-src comp1-src t) |
| 56 | (copy-file comp-src comp2-src t) | 56 | (copy-file comp-src comp2-src t) |
| 57 | (load (concat comp-src "c") nil nil t t) | 57 | (let ((load-no-native t)) |
| 58 | (load (concat comp-src "c") nil nil t t)) | ||
| 58 | (should-not (subr-native-elisp-p (symbol-function #'native-compile))) | 59 | (should-not (subr-native-elisp-p (symbol-function #'native-compile))) |
| 59 | (message "Compiling stage1...") | 60 | (message "Compiling stage1...") |
| 60 | (let ((comp1-eln (native-compile comp1-src))) | 61 | (let ((comp1-eln (native-compile comp1-src))) |
diff --git a/test/src/fns-tests.el b/test/src/fns-tests.el index f1faf58659a..400e9126486 100644 --- a/test/src/fns-tests.el +++ b/test/src/fns-tests.el | |||
| @@ -895,3 +895,9 @@ | |||
| 895 | ;; This does not test randomness; it's merely a format check. | 895 | ;; This does not test randomness; it's merely a format check. |
| 896 | (should (string-match "\\`[0-9a-f]\\{128\\}\\'" | 896 | (should (string-match "\\`[0-9a-f]\\{128\\}\\'" |
| 897 | (secure-hash 'sha512 'iv-auto 100)))) | 897 | (secure-hash 'sha512 'iv-auto 100)))) |
| 898 | |||
| 899 | (ert-deftest test-vector-delete () | ||
| 900 | (let ((v1 (make-vector 1000 1))) | ||
| 901 | (should (equal (delete t [nil t]) [nil])) | ||
| 902 | (should (equal (delete 1 v1) (vector))) | ||
| 903 | (should (equal (delete 2 v1) v1)))) | ||