mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
e659840bcd
The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in llvm. Differential Revision: https://reviews.llvm.org/D36495 llvm-svn: 310953
22 lines
663 B
OCaml
22 lines
663 B
OCaml
(* RUN: rm -rf %t && mkdir -p %t && cp %s %t/transform_utils.ml
|
|
* RUN: %ocamlc -g -w +A -package llvm.transform_utils -linkpkg %t/transform_utils.ml -o %t/executable
|
|
* RUN: %t/executable
|
|
* RUN: %ocamlopt -g -w +A -package llvm.transform_utils -linkpkg %t/transform_utils.ml -o %t/executable
|
|
* RUN: %t/executable
|
|
* XFAIL: vg_leak
|
|
*)
|
|
|
|
open Llvm
|
|
open Llvm_transform_utils
|
|
|
|
let context = global_context ()
|
|
|
|
let test_clone_module () =
|
|
let m = create_module context "mod" in
|
|
let m' = clone_module m in
|
|
if m == m' then failwith "m == m'";
|
|
if string_of_llmodule m <> string_of_llmodule m' then failwith "string_of m <> m'"
|
|
|
|
let () =
|
|
test_clone_module ()
|