# to failures, mostly in libclang.VirtualFileOverlay_*.
# FIXME: Also, the executable can't find libclang.dll since that's
# in a different directory.
- deps += [ "libclang:libclangTests" ]
+ deps += [
+ "libclang:libclangTests",
+ "libclang/CrashTests:libclangCrashTests",
+ ]
}
testonly = true
}
--- /dev/null
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("libclangCrashTests") {
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/tools/libclang",
+ ]
+ sources = [
+ "LibclangCrashTest.cpp",
+ ]
+ if (host_os == "mac") {
+ ldflags = [ "-Wl,-rpath," + rebase_path("$root_out_dir/lib") ]
+ }
+}