diff options
author | Vincent Ambo <tazjin@google.com> | 2019-08-15T15·11+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-08-15T15·11+0100 |
commit | 128875b501bc2989617ae553317b80faa556d752 (patch) | |
tree | 9b32d12123801179ebe900980556486ad4803482 /third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py | |
parent | a20daf87265a62b494d67f86d4a5199f14394973 (diff) |
chore: Remove remaining Bazel-related files r/31
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py')
-rw-r--r-- | third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py b/third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py deleted file mode 100644 index b400102d1cc6..000000000000 --- a/third_party/bazel/rules_haskell/tests/cc_haskell_import/python_add_one.py +++ /dev/null @@ -1,18 +0,0 @@ -import os -import ctypes -from bazel_tools.tools.python.runfiles import runfiles -import subprocess - -r = runfiles.Create() - -path = r.Rlocation('io_tweag_rules_haskell/tests/cc_haskell_import/hs-lib-b-wrapped.so') - -foreignlib = ctypes.cdll.LoadLibrary(path) - -# ATTN: If you remove this print *statement* hs_init will segfault! -# If you use the python3 print *function*, it will segfault as well! -# TODO: wtf? -print foreignlib - -foreignlib.hs_init() -assert(str(foreignlib.add_one_hs(1)) == "2") |