19 lines
771 B
Python
19 lines
771 B
Python
"""Deferred positive gold intents are not a live PointChange interception."""
|
|
import subprocess
|
|
import tempfile
|
|
import unittest
|
|
from pathlib import Path
|
|
ROOT=Path(__file__).resolve().parents[2]
|
|
|
|
|
|
class CubeDeferredGold(unittest.TestCase):
|
|
def test_durable_order_replay_failures_restart_and_resync_barrier(self):
|
|
with tempfile.TemporaryDirectory() as folder:
|
|
exe=Path(folder)/'gold'
|
|
subprocess.run(['c++','-std=c++17','-fsanitize=address,undefined','-fno-sanitize-recover=all',
|
|
'-I'+str(ROOT),str(ROOT/'tests/features/fixtures/cube_gold_probe.cpp'),'-lsqlite3','-o',str(exe)],check=True)
|
|
subprocess.run([str(exe),str(Path(folder)/'gold.db')],check=True)
|
|
|
|
|
|
if __name__=='__main__':unittest.main()
|