1# REQUIRES: system-darwin 2 3# This tests the reproducer version check. 4 5# RUN: rm -rf %t.repro 6# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out 7# RUN: %lldb -x -b -s %S/Inputs/FileCapture.in --capture --capture-path %t.repro %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE 8 9# Make sure that replay works. 10# RUN: %lldb --replay %t.repro | FileCheck %s --check-prefix CHECK --check-prefix REPLAY 11 12# Change the reproducer version. 13# RUN: echo "bogus" >> %t.repro/version.txt 14 15# Make sure that replay works. 16# RUN: not %lldb --replay %t.repro 2>&1 | FileCheck %s --check-prefix ERROR 17 18# Make sure that we can circumvent the version check with -reproducer-no-version-check. 19# RUN: %lldb --replay %t.repro -reproducer-no-version-check | FileCheck %s --check-prefix CHECK --check-prefix REPLAY 20 21# CAPTURE: testing 22# REPLAY-NOT: testing 23 24# CHECK: Process {{.*}} exited 25 26# CAPTURE: Reproducer is in capture mode. 27# CAPTURE: Reproducer written 28 29# ERROR: error: reproducer replay failed: reproducer capture and replay version don't match 30