summaryrefslogtreecommitdiff
path: root/test/handler/test_cuda_nvcc_handler.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-09-13 23:30:32 +0100
committerw0rp <devw0rp@gmail.com>2017-09-13 23:30:39 +0100
commit3d2bddf4af7515a6f2b20cf6b5bb8fa5568a1a99 (patch)
tree2696c8a55580ac6137b24d81921e3d4bc1c62a74 /test/handler/test_cuda_nvcc_handler.vader
parent677263f11501b40ca52239c96335be9c06141c3e (diff)
downloadale-3d2bddf4af7515a6f2b20cf6b5bb8fa5568a1a99.zip
Get some more random tests to pass on Windows
Diffstat (limited to 'test/handler/test_cuda_nvcc_handler.vader')
-rw-r--r--test/handler/test_cuda_nvcc_handler.vader18
1 files changed, 15 insertions, 3 deletions
diff --git a/test/handler/test_cuda_nvcc_handler.vader b/test/handler/test_cuda_nvcc_handler.vader
index 03297ab7..40e31922 100644
--- a/test/handler/test_cuda_nvcc_handler.vader
+++ b/test/handler/test_cuda_nvcc_handler.vader
@@ -1,3 +1,9 @@
+Before:
+ runtime ale_linters/cuda/nvcc.vim
+
+After:
+ call ale#linter#Reset()
+
Execute(The cuda nvcc handler should parse errors from multiple files for NVCC 8.0):
AssertEqual
\ [
@@ -5,19 +11,25 @@ Execute(The cuda nvcc handler should parse errors from multiple files for NVCC 8
\ 'lnum': 1,
\ 'type': 'E',
\ 'text': 'this declaration has no storage class or type specifier',
- \ 'filename': '/tmp/cudatest/test.cu',
+ \ 'filename': has('win32')
+ \ ? 'C:\tmp\cudatest\test.cu'
+ \ : '/tmp/cudatest/test.cu',
\ },
\ {
\ 'lnum': 2,
\ 'type': 'E',
\ 'text': 'attribute "global" does not apply here',
- \ 'filename': '/tmp/cudatest/common.h',
+ \ 'filename': has('win32')
+ \ ? 'C:\tmp\cudatest\common.h'
+ \ : '/tmp/cudatest/common.h',
\ },
\ {
\ 'lnum': 2,
\ 'type': 'E',
\ 'text': 'expected a ";"',
- \ 'filename': '/tmp/cudatest/common.h',
+ \ 'filename': has('win32')
+ \ ? 'C:\tmp\cudatest\common.h'
+ \ : '/tmp/cudatest/common.h',
\ },
\ ],
\ ale_linters#cuda#nvcc#HandleNVCCFormat(0, [